CVE-2025-39920

pcmcia: Add error handling for add_interval() in do_validate_mem()

MEDIUM
5.5
CVSS Score
Published: October 1, 2025 at 07:55 AM UTC
Updated: October 19, 2026 at 09:10 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: pcmcia: Add error handling for add_interval() in do_validate_mem() In the do_validate_mem(), the call to add_interval() does not handle errors. If kmalloc() fails in add_interval(), it could result in a null pointer being inserted into the linked list, leading to illegal memory access when sub_interval() is called next. This patch adds an error handling for the add_interval(). If add_interval() returns an error, the function will return early with the error code.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.34 ≤ v < 5.4.2995.11 ≤ v < 5.15.1925.16 ≤ v < 6.1.1515.5 ≤ v < 5.10.2436.13 ≤ v < 6.16.66.2 ≤ v < 6.6.1056.7 ≤ v < 6.12.462.6.346.176.17 rc16.17 rc26.17 rc36.17 rc47b4884ca8853a638df0eb5d251d80d67777b8b1a
Vendor states this is fixed in 06b26e3099207c94b3d1be8565aedc6edc4f0a60 (fixed)
Vendor states this is fixed in 289b58f8ff3198d091074a751d6b8f6827726f3e (fixed)
Vendor states this is fixed in 369bf6e241506583f4ee7593c53b92e5a9f271b4 (fixed)
Vendor states this is fixed in 4a81f78caa53e0633cf311ca1526377d9bff7479 (fixed)
Vendor states this is fixed in 5b60ed401b47897352c520bc724c85aa908dedcc (fixed)
Vendor states this is fixed in 85be7ef8c8e792a414940a38d94565dd48d2f236 (fixed)
Vendor states this is fixed in 8699358b6ac99b8ccc97ed9e6e3669ef8958ef7b (fixed)
Vendor states this is fixed in ae184024ef31423e5beb44cf4f52999bbcf2fe5b (fixed)
Vendor states this is fixed in 2.6.34 (unaffected)
Vendor states this is fixed in 5.10.243 (unaffected)
Vendor states this is fixed in 5.15.192 (unaffected)
Vendor states this is fixed in 5.4.299 (unaffected)
Vendor states this is fixed in 6.1.151 (unaffected)
Vendor states this is fixed in 6.12.46 (unaffected)
Vendor states this is fixed in 6.16.6 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.105 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card