Linux Kernel xa_alloc_cyclic() Error Handling Vulnerability

Vulnerability

A vulnerability in the Linux kernel's handling of the xa_alloc_cyclic() function has been addressed. The issue arose because the function could return 1, indicating a wraparound, which would be interpreted as a valid pointer (ERR_PTR(1)). This misinterpretation could lead to a dereference of an unallocated pointer. The vulnerability was fixed by adding a check to ensure that the error value is less than zero before proceeding. This issue was not encountered in real-world scenarios but was identified during code review.

Impact

The vulnerability could lead to a use-after-free condition by allowing the dereference of an unallocated pointer, potentially causing memory corruption.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
5.0
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.