Performance Degradation Vulnerability in Linux Kernel: IDPF Workqueues
Summary
DEBIAN-CVE-2024-58057: In the Linux kernel, the following vulnerability has been resolved: idpf: convert workqueues to unbound When a workqueue is created with WQ_UNBOUND, its work items are served by special worker-pools, whose host workers a... Affects linux versions < 6.12.13-1. Fixed in 6.12.13-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 the Linux operating system, managing hardware resources and providing essential services for software applications. It supports various functionalities, including process management, memory management, and device control. The kernel is crucial for system stability and performance. The vulnerability in question affects the IDPF (Intelligent Data Path Forwarding) workqueues, which are designed to handle tasks efficiently. However, a misconfiguration can lead to performance issues and system crashes.
Vulnerability Detail
In the Linux kernel, a vulnerability was identified in the IDPF workqueues related to the use of unbound workqueues. When a workqueue is created with the WQ_UNBOUND flag, its work items can be executed on any CPU within the same node. This flexibility, while beneficial in some scenarios, can lead to significant performance degradation if a misconfigured process monopolizes a CPU. In tests, it was observed that an antagonist process could cause delays of up to 30ms in work item execution, leading to timeouts and potential system crashes. The patch addresses this issue by allowing work items to migrate to less loaded CPUs, significantly reducing delays.
How To Fix
Minimum fixed version
6.12.13-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 workaround, users can avoid binding the antagonist process to a specific CPU, allowing the work items to be executed on less loaded CPUs. Additionally, modifying calls to queue_delayed_work and similar functions to not prefer a specific CPU can help mitigate the issue.
Conclusion
The vulnerability in the Linux kernel related to IDPF workqueues poses a risk of performance degradation and system instability. It is crucial for users to update to the patched version to mitigate these risks. Implementing workarounds can also help in the interim.
See every vulnerability recorded for linux →
FAQ
The vulnerability can lead to significant performance degradation, timeouts, and even system crashes due to delayed execution of work items.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
WQ_UNBOUND is a flag used when creating workqueues that allows work items to be executed on any CPU in the same node, providing flexibility but potentially leading to performance issues.
If immediate updates are not possible, consider implementing the suggested workarounds to mitigate the impact of the vulnerability.
You can refer to the official Linux kernel documentation and security advisories for detailed information on vulnerabilities and patches.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.