Critical NULL Pointer Dereference Vulnerability in Linux Kernel (CVE-2022-49141)
Summary
CVE-2022-49141: In the Linux kernel, the following vulnerability has been resolved: net: dsa: felix: fix possible NULL pointer dereference As the possible failure of the allocation, kzalloc() may return NULL pointer. Affects linux versions < 5.17.3-1. Fixed in 5.17.3-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, providing essential services for hardware management and system resources. It is known for its stability, performance, and security features. However, like any complex software, it is susceptible to vulnerabilities that can compromise system integrity. CVE-2022-49141 specifically affects the DSA (Distributed Switch Architecture) subsystem, which is responsible for managing network switches, highlighting the importance of maintaining robust security practices in networked environments.
Vulnerability Detail
CVE-2022-49141 is a vulnerability in the Linux kernel that arises from a potential NULL pointer dereference in the DSA subsystem, specifically within the felix driver. This issue occurs when the kzalloc() function fails to allocate memory, returning a NULL pointer. If the code does not adequately check for this NULL value before dereferencing it, it can lead to system crashes or unpredictable behavior, posing a significant risk to system stability and security.
How To Fix
Minimum fixed version
5.17.3-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can implement additional checks in the code to verify that the pointer returned by kzalloc() is not NULL before proceeding with operations that dereference it. This can be done by adding a conditional statement like: 'if (sgi != NULL) { /* proceed with operations / } else { / handle error */ }'.
Conclusion
CVE-2022-49141 is a critical vulnerability in the Linux kernel that can lead to serious system issues if not addressed. Users are strongly encouraged to update their systems to the latest patched version to mitigate risks. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for linux →
FAQ
CVE-2022-49141 is a vulnerability in the Linux kernel that can lead to a NULL pointer dereference, potentially causing system crashes.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Failing to address this vulnerability can lead to system instability, crashes, and potential exploitation by malicious actors.
Yes, the vulnerability has been patched in version 5.17.3-1 of the Linux kernel. Users are advised to update to this version or later.
Vulert is a tool that monitors and alerts users in real-time for open-source vulnerabilities in software, using just a manifest file like package-lock.json.
Related vulnerabilities
Recent vulnerabilities recorded for linux.