# CVE-2025-40197: media: mc: Clear minor number before put device

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-11-12T21:56:32.852Z
- **Modified:** 2026-10-19T21:10:00.160Z

## 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

## 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

- 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)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/dd156f44ea82cc249f46c519eed3b2f8983c8002>
- other: <https://git.kernel.org/stable/c/64dbc6f50ce92b7da203b1bcdd96a370bbc9b74d>
- other: <https://git.kernel.org/stable/c/5d327391f9fafeb0938be4fc538dd0bd54a0b2ef>
- other: <https://git.kernel.org/stable/c/8f52c7f38f0f2ee2afc331e6b873acba5e9490a8>
- other: <https://git.kernel.org/stable/c/7bd4e5367d0940ccec4d7546bb6bd019ab2c71aa>
- other: <https://git.kernel.org/stable/c/7db47e737128b3585ae679b709b85f3f44cd8750>
- other: <https://git.kernel.org/stable/c/ac01416d477c2dc6016782635ae022f8cc634a29>
- other: <https://git.kernel.org/stable/c/8cfc8cec1b4da88a47c243a11f384baefd092a50>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40197>

HTML: <https://flawdb.com/CVE-2025-40197> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40197>
