CVE-2025-22017

MEDIUM EPSS 6.6%
Published Apr 8, 20251y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Apr 8, 2025 1y ago
Last Modified Jun 17, 2026 2w ago

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 Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
6.6% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-476 NULL Pointer Dereference Memory Safety

Affected Products 9

VendorProductVersionRange
linuxlinux_kernel*≥6.7  –  <6.12.21
linuxlinux_kernel*≥6.13  –  <6.13.9
linuxlinux_kernel6.14any
linuxlinux_kernel6.14any
linuxlinux_kernel6.14any
linuxlinux_kernel6.14any
linuxlinux_kernel6.14any
linuxlinux_kernel6.14any
linuxlinux_kernel6.14any

References 3

  • git.kernel.org https://git.kernel.org/stable/c/466132f6d28a7e47a82501fe1c46b8f90487412e
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/f3b97b7d4bf316c3991e5634c9f4847c2df35478
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/f8aaa38cfaf6f20afa4db36b6529032fb69165dc
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/466132f6d28a7e47a82501fe1c46b8f90487412e
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/f3b97b7d4bf316c3991e5634c9f4847c2df35478
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/f8aaa38cfaf6f20afa4db36b6529032fb69165dc
    Patch