Skip to main content
Network Thinking Solutions Logo

CVE-2025-22017

Linux kernel: devlink: fix xa_alloc_cyclic() error handling

All CVEs
CVE-2025-22017Published 4/8/2025

Linux kernel: devlink: fix xa_alloc_cyclic() error handling

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
4/8/2025
Last modified
11/5/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 6.7, < 6.12.21

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.13.9

Verify advisory

Source
linux kernel
linux
6.14

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ c137743bce02b18c1537d4681aa515f7b80bf0a8, < f8aaa38cfaf6f20afa4db36b6529032fb69165dc

Verify advisory

Source
Linux
Linux
≥ c137743bce02b18c1537d4681aa515f7b80bf0a8, < 466132f6d28a7e47a82501fe1c46b8f90487412e

Verify advisory

Source
Linux
Linux
≥ c137743bce02b18c1537d4681aa515f7b80bf0a8, < f3b97b7d4bf316c3991e5634c9f4847c2df35478

Verify advisory

Source
Linux
Linux
6.7

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.