CVE-2025-39920
pcmcia: Add error handling for add_interval() in do_validate_mem()
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.
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.
| Product | Versions |
|---|---|
| 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
- https://git.kernel.org/stable/c/5b60ed401b47897352c520bc724c85aa908dedcc git.kernel.org
- https://git.kernel.org/stable/c/ae184024ef31423e5beb44cf4f52999bbcf2fe5b git.kernel.org
- https://git.kernel.org/stable/c/85be7ef8c8e792a414940a38d94565dd48d2f236 git.kernel.org
- https://git.kernel.org/stable/c/06b26e3099207c94b3d1be8565aedc6edc4f0a60 git.kernel.org
- https://git.kernel.org/stable/c/8699358b6ac99b8ccc97ed9e6e3669ef8958ef7b git.kernel.org
- https://git.kernel.org/stable/c/289b58f8ff3198d091074a751d6b8f6827726f3e git.kernel.org
- https://git.kernel.org/stable/c/369bf6e241506583f4ee7593c53b92e5a9f271b4 git.kernel.org
- https://git.kernel.org/stable/c/4a81f78caa53e0633cf311ca1526377d9bff7479 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
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.
Vulnpocalypse