CVE-2025-22017

MEDIUM

Linux Kernel 6.7-6.12.20 - NULL Pointer Dereference in devlink xa_alloc_cyclic Error Handling

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0016
EPSS Percentile 5.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (12)
linux/Kernel 6.13.0 - 6.13.9linux
linux/Kernel 6.7.0 - 6.12.21linux
Linux/Linux < 6.7
Linux/Linux 6.12.21 - 6.12.*
Linux/Linux 6.13.9 - 6.13.*
Linux/Linux 6.14
Linux/Linux 6.7
Linux/Linux c137743bce02b18c1537d4681aa515f7b80bf0a8 - 466132f6d28a7e47a82501fe1c46b8f90487412e
Linux/Linux c137743bce02b18c1537d4681aa515f7b80bf0a8 - f3b97b7d4bf316c3991e5634c9f4847c2df35478
Linux/Linux c137743bce02b18c1537d4681aa515f7b80bf0a8 - f8aaa38cfaf6f20afa4db36b6529032fb69165dc
... and 2 more
Published Apr 08, 2025
Tracked Since Feb 18, 2026