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

CVE-2025-39920
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 5b60ed401b47897352c520bc724c85aa908dedcc ; affected 7b4884ca8853a638df0eb5d251d80d67777b8b1a < ae184024ef31423e5beb44cf4f52999bbcf2fe5b ; affected 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 85be7ef8c8e792a414940a38d94565dd48d2f236 ; affected 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 06b26e3099207c94b3d1be8565aedc6edc4f0a60 ; affected 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 8699358b6ac99b8ccc97ed9e6e3669ef8958ef7b ; affected 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 289b58f8ff3198d091074a751d6b8f6827726f3e
Linux · Linuxaffected 2.6.34 ; unaffected 0 < 2.6.34 ; unaffected 5.4.299 ≤ 5.4.* ; unaffected 5.10.243 ≤ 5.10.* ; unaffected 5.15.192 ≤ 5.15.* ; unaffected 6.1.151 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD