CVE-2025-40197
media: mc: Clear minor number before put device
Check your servers for CVE-2025-40197
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-40197 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:
media: mc: Clear minor number before put device
The device minor should not be cleared after the device is released.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before dd156f44ea82cc249f46c519eed3b2f8983c8002 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7db47e737128b3585ae679b709b85f3f44cd8750 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ac01416d477c2dc6016782635ae022f8cc634a29 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8cfc8cec1b4da88a47c243a11f384baefd092a50 affected before 5.4.301 affected before 5.10.246 affected before 5.15.195 affected before 6.1.157 affected before 6.6.113 affected before 6.12.54 affected before 6.17.4
Other versions: unaffected
|
| Linux |
unaffected from 5.4.301 up to and including 5.4.* unaffected from 5.10.246 up to and including 5.10.* unaffected from 5.15.195 up to and including 5.15.* unaffected from 6.1.157 up to and including 6.1.* unaffected from 6.6.113 up to and including 6.6.* unaffected from 6.12.54 up to and including 6.12.* unaffected from 6.17.4 up to and including 6.17.* unaffected 6.18 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-40197 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40197
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-40197
trivy image --scanners vuln IMAGE | grep CVE-2025-40197
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/dd156f44ea82cc249f46c519eed3b2f8983c8002 git.kernel.org
- https://git.kernel.org/stable/c/64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d git.kernel.org
- https://git.kernel.org/stable/c/5d327391f9fafeb0938be4fc538dd0bd54a0b2ef git.kernel.org
- https://git.kernel.org/stable/c/8f52c7f38f0f2ee2afc331e6b873acba5e9490a8 git.kernel.org
- https://git.kernel.org/stable/c/7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa git.kernel.org
- https://git.kernel.org/stable/c/7db47e737128b3585ae679b709b85f3f44cd8750 git.kernel.org
- https://git.kernel.org/stable/c/ac01416d477c2dc6016782635ae022f8cc634a29 git.kernel.org
- https://git.kernel.org/stable/c/8cfc8cec1b4da88a47c243a11f384baefd092a50 git.kernel.org
Source: the record CVE-2025-40197 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