CVE-2025-40197
media: mc: Clear minor number before put device
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dd156f44ea82cc249f46c519eed3b2f8983c8002; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7db47e737128b3585ae679b709b85f3f44cd8750; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ac01416d477c2dc6016782635ae022f8cc634a29; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8cfc8cec1b4da88a47c243a11f384baefd092a50; < 5.4.301; < 5.10.246; …
- Anyone running Linux all versions
Vulnerability facts
- Affected
- Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dd156f44ea82cc249f46c519eed3b2f8983c8002; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7db47e737128b3585ae679b709b85f3f44cd8750; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ac01416d477c2dc6016782635ae022f8cc634a29; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8cfc8cec1b4da88a47c243a11f384baefd092a50; < 5.4.301; < 5.10.246; …; Linux all versions
- Fixed in
- Linux 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d, Linux 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef, Linux 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8, Linux 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa, Linux 7db47e737128b3585ae679b709b85f3f44cd8750, Linux 8cfc8cec1b4da88a47c243a11f384baefd092a50, Linux 5.4.301, Linux 5.10.246
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dd156f44ea82cc249f46c519eed3b2f8983c8002; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7db47e737128b3585ae679b709b85f3f44cd8750; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ac01416d477c2dc6016782635ae022f8cc634a29; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8cfc8cec1b4da88a47c243a11f384baefd092a50; < 5.4.301; < 5.10.246; … | — | cvelist |
| Linux | all versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40197. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40197.md Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dd156f44ea82cc249f46c519eed3b2f8983c8002; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef; >= 1da177e4c3f41524e886b7f… Fixed in: Linux 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d, Linux 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef, Linux 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8, Linux 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa, Linux 7db47e737128b3585ae679b709b85f3f44cd8750, Linux 8cfc8cec1b4da88a47c243a11f384baefd092a50, Linux 5.4.3… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/dd156f44ea82cc249f46c519eed3b2f8983c8002
- https://git.kernel.org/stable/c/64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d
- https://git.kernel.org/stable/c/5d327391f9fafeb0938be4fc538dd0bd54a0b2ef
- https://git.kernel.org/stable/c/8f52c7f38f0f2ee2afc331e6b873acba5e9490a8
- https://git.kernel.org/stable/c/7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa
- https://git.kernel.org/stable/c/7db47e737128b3585ae679b709b85f3f44cd8750
- https://git.kernel.org/stable/c/ac01416d477c2dc6016782635ae022f8cc634a29
- https://git.kernel.org/stable/c/8cfc8cec1b4da88a47c243a11f384baefd092a50
FAQ
Is CVE-2025-40197 being exploited?
There is no confirmed exploitation: CVE-2025-40197 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40197?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-40197?
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dd156f44ea82cc249f46c519eed3b2f8983c8002; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7db47e737128b3585ae679b709b85f3f44cd8750; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ac01416d477c2dc6016782635ae022f8cc634a29; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8cfc8cec1b4da88a47c243a11f384baefd092a50; < 5.4.301; < 5.10.246; …; Linux all versions.
Is there a fix for CVE-2025-40197?
Yes. Fixed in Linux 64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d, Linux 5d327391f9fafeb0938be4fc538dd0bd54a0b2ef, Linux 8f52c7f38f0f2ee2afc331e6b873acba5e9490a8, Linux 7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa, Linux 7db47e737128b3585ae679b709b85f3f44cd8750, Linux 8cfc8cec1b4da88a47c243a11f384baefd092a50, Linux 5.4.301, Linux 5.10.246. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-40197?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.