VDB

CVE-2025-38313

CVE-2025-38313 PUBLISHED

bus: fsl-mc: fix double-free on mc_dev

Reported by linux · Published July 10, 2025

In the Linux kernel, the following vulnerability has been resolved: bus: fsl-mc: fix double-free on mc_dev The blamed commit tried to simplify how the deallocations are done but, in the process, introduced a double-free on the mc_dev variable. In case the MC device is a DPRC, a new mc_bus is allocated and the mc_dev variable is just a reference to one of its fields. In this circumstance, on the error path only the mc_bus should be freed. This commit introduces back the following checkpatch warning which is a false-positive. WARNING: kfree(NULL) is safe and this check is probably not required + if (mc_bus) + kfree(mc_bus);

Affected products

VendorProductVersions
LinuxLinuxa042fbed02904493ae6df26ec836045f5a7d3ce2, a042fbed02904493ae6df26ec836045f5a7d3ce2, a042fbed02904493ae6df26ec836045f5a7d3ce2
LinuxLinux4.13, 0, 5.4.295
linuxlinux_kernel4.13, 4.13, 4.13
LinuxLinux*, *, 4.13

Timeline

  • Jul 9, 2025 CVE Published
  • Jul 10, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 11, 2025 PoC Published (15 in total, the first dated here)
  • Nov 17, 2025 CVE Updated
  • Mar 29, 2026 Distribution Patch (138 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (144 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38313
vulnetix vdb fixes CVE-2025-38313

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38313/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›