CVE-2025-22017 Details
Description
In the Linux kernel, the following vulnerability has been resolved: devlink: fix xa_alloc_cyclic() error handling In case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will be returned, which will cause IS_ERR() to be false. Which can lead to dereference not allocated pointer (rel). Fix it by checking if err is lower than zero. This wasn't found in real usecase, only noticed. Credit to Pierre.
A vulnerability in the Linux kernel's devlink component was introduced by improper error handling in the xa_alloc_cyclic() function. When xa_alloc_cyclic() returned a value of 1, indicating a wraparound, the function erroneously returned ERR_PTR(1). This mistake led to a false negative when checked with IS_ERR(), potentially allowing a dereference of an unallocated pointer. The issue was not observed in real-world scenarios but was identified during code review.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/466132f6d28a7e47a82501fe1c46b8f90487412e | kernel.org | Patch |
| https://git.kernel.org/stable/c/f3b97b7d4bf316c3991e5634c9f4847c2df35478 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f8aaa38cfaf6f20afa4db36b6529032fb69165dc | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.7, < 6.12.21 >= 6.13, < 6.13.9 6.14 rc1 6.14 rc2 6.14 rc3 6.14 rc4 6.14 rc5 6.14 rc6 6.14 rc7 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | Initial Analysis | [email protected] |
| Apr 8, 2025 | New CVE Received | kernel.org |