CVE-2025-39920

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

No CVSS score yet EPSS 0.18%

Published 1 Oct 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-39920

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39920 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.35% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 5b60ed401b47897352c520bc724c85aa908dedcc
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before ae184024ef31423e5beb44cf4f52999bbcf2fe5b
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 85be7ef8c8e792a414940a38d94565dd48d2f236
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 06b26e3099207c94b3d1be8565aedc6edc4f0a60
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 8699358b6ac99b8ccc97ed9e6e3669ef8958ef7b
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 289b58f8ff3198d091074a751d6b8f6827726f3e
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 369bf6e241506583f4ee7593c53b92e5a9f271b4
affected from 7b4884ca8853a638df0eb5d251d80d67777b8b1a, before 4a81f78caa53e0633cf311ca1526377d9bff7479
Other versions: unaffected
Linux
affected 2.6.34
unaffected before 2.6.34
unaffected from 5.4.299 up to and including 5.4.*
unaffected from 5.10.243 up to and including 5.10.*
unaffected from 5.15.192 up to and including 5.15.*
unaffected from 6.1.151 up to and including 6.1.*
unaffected from 6.6.105 up to and including 6.6.*
unaffected from 6.12.46 up to and including 6.12.*
unaffected from 6.16.6 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39920 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39920

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39920
trivy image --scanners vuln IMAGE | grep CVE-2025-39920

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39920 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.