CVE-2025-22017
devlink: fix xa_alloc_cyclic() error handling
Reported by linux · Published April 8, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-devel | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-tools | Amazon Linux | 6.12.22-27.96.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c137743bce02b18c1537d4681aa515f7b80bf0a8, c137743bce02b18c1537d4681aa515f7b80bf0a8, c137743bce02b18c1537d4681aa515f7b80bf0a8 |
| Linux | Linux | 6.7, 0, 6.12.21 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| linux | linux_kernel | 6.7, 6.7, 6.7 |
| Linux | Linux | 6.14, *, * |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.22-27.96 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
Timeline
- Apr 7, 2025 CVE Published
- Apr 8, 2025 EPSS Score (30 in total, the first dated here)
- May 10, 2025 Coalition ESS Score (7 in total, the first dated here)
- Dec 21, 2025 Security Advisory (107 in total, the first dated here)
- Dec 21, 2025 CVE Updated
- Apr 29, 2026 Distribution Patch (104 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22017
vulnetix vdb fixes CVE-2025-22017
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22017/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart