CVE-2025-22017
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability has been identified in the devlink error handling mechanism. The issue involves incorrect handling of xa_alloc_cyclic() return values, where a return value of 1 (indicating wrapping) results in ERR_PTR(1) being returned, causing IS_ERR() to return false. This vulnerability was discovered on April 8, 2025, and affects the Linux kernel's devlink subsystem (NVD).

Technical details

The vulnerability stems from improper error handling in the xa_alloc_cyclic() function within the devlink subsystem. When xa_alloc_cyclic() returns 1 to indicate wrapping, the function returns ERR_PTR(1), which leads to IS_ERR() returning false. This can subsequently result in dereferencing an unallocated pointer. The issue was discovered during code review rather than in a real-world use case (NVD).

Impact

The vulnerability can lead to dereferencing of unallocated pointers in the Linux kernel's devlink subsystem, potentially causing system instability or crashes. This issue affects various Linux distributions including Ubuntu 24.04 LTS and 24.10 (Ubuntu).

Exploitability

The vulnerability was not discovered in a real-world use case but was identified during code review. There are no known active exploits in the wild (NVD).

Mitigation and workarounds

The fix involves modifying the error handling logic to check if the error value is lower than zero. This ensures proper handling of the xa_alloc_cyclic() return value and prevents the dereferencing of unallocated pointers (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management