CVE-2025-22017: devlink: fix xa_alloc_cyclic() error handling
Vulnerability summary
CVE-2025-22017 is a medium (CVSS 5.5) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 12.3% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 28 · Related 28Timeline
- 08-04-2025PublishedVulnerability first disclosed.
- 05-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.20% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu110 products
- linux< 6.8.0-84.84
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1039.41
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ c137743bce02b18c1537d4681aa515f7b80bf0a8, < f8aaa38cfaf6f20afa4db36b6529032fb69165dc | ≥ c137743bce02b18c1537d4681aa515f7b80bf0a8, < 466132f6d28a7e47a82501fe1c46b8f90487412e | ≥ c137743bce02b18c1537d4681aa515f7b80bf0a8, < f3b97b7d4bf316c3991e5634c9f4847c2df35478 | 6.7
- 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
Debian1 product
- linux< 6.12.21-1
3 vendors · 113 products