devlink: fix xa_alloc_cyclic() error handling
Published Apr 8, 2025
5.5
MEDIUMCVSS 3.1
EPSS 0.20%
Description
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.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 6.7StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<6.7
- Version 6.12.21StatusunaffectedConstraints<=6.12.*
- Version 6.13.9StatusunaffectedConstraints<=6.13.*
- Version 6.14StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 6.7 · < 6.12.21
- ≥ 6.13 · < 6.13.9
- 6.14
- 6.14
- 6.14
- 6.14
- 6.14
- 6.14
- 6.14
No data.
Red Hat Enterprise Linux 10
kernel
Fix deferred
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2025–2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.20% (0.00197) | 8.47th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.16% (0.00159) | 5.45th | v5 (v2026.06.15) |
| Apr 8, 2025 | 0.02% (0.00017) | 2.02th | v4 (v2025.03.14) |
References (8)
- https://access.redhat.com/security/cve/CVE-2025-22017 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2358224 Issue Tracking
- https://git.kernel.org/stable/c/466132f6d28a7e47a82501fe1c46b8f90487412e Patch
- https://git.kernel.org/stable/c/f3b97b7d4bf316c3991e5634c9f4847c2df35478 Patch
- https://git.kernel.org/stable/c/f8aaa38cfaf6f20afa4db36b6529032fb69165dc Patch
- https://lore.kernel.org/linux-cve-announce/2025040844-CVE-2025-22017-a66e@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2025-22017
- https://www.cve.org/CVERecord?id=CVE-2025-22017
Change history (0)
No recorded changes yet.