PT-2025-8473 · Linux+1 · Linux Kernel+1
Published
2022-04-11
·
Updated
2025-02-27
·
CVE-2022-49540
CVSS v3.1
4.7
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to the version that includes this fix
Description
A race condition in the Linux kernel's RCU Tasks Rude grace-period process has been identified. This issue occurs during early boot when there is only one online CPU, causing problems due to the rcu tasks rude wait gp() function's call to schedule on each cpu(). The purpose of RCU Tasks Rude is to force a schedule on each online CPU since some past event, but in the context of a single CPU, this is unnecessary. The issue results in a warning and a call trace, indicating a potential problem with the kernel's workqueue and scheduling mechanisms.
Recommendations
For Linux kernel versions prior to the fixed version, apply the single-CPU optimization to the RCU Tasks Rude grace-period process to prevent the race condition from occurring. This can be achieved by modifying the rcu tasks rude wait gp() function to check if there is only one online CPU before calling schedule on each cpu(), and if so, skipping this call to avoid the problem.
Exploit
Fix
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Astra Linux
Linux Kernel