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.
Metrics
Affected Vendors & Products
References
History
Wed, 09 Apr 2025 15:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Weaknesses | CWE-395 | |
Metrics |
threat_severity
|
threat_severity
|
Tue, 08 Apr 2025 14:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|
Tue, 08 Apr 2025 08:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | devlink: fix xa_alloc_cyclic() error handling | |
References |
|

Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2025-04-08T08:18:06.575Z
Reserved: 2024-12-29T08:45:45.806Z
Link: CVE-2025-22017

No data.

Status : Awaiting Analysis
Published: 2025-04-08T09:15:26.557
Modified: 2025-04-08T18:13:53.347
Link: CVE-2025-22017
