CVE-2025-39747
drm/msm: Add error handling for krealloc in metadata setup
Check your servers for CVE-2025-39747
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-39747 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:
drm/msm: Add error handling for krealloc in metadata setup
Function msm_ioctl_gem_info_set_metadata() now checks for krealloc failure and returns -ENOMEM, avoiding potential NULL pointer dereference. Explicitly avoids __GFP_NOFAIL due to deadlock risks and allocation constraints.
Patchwork: https://patchwork.freedesktop.org/patch/661235/
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.24% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, before 53dc780c1e94ea782d8936b41bfaa83c663702eb affected from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, before 01e3eda8edc3c4caaa49261d1a56c799b0bd6268 affected from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, before d5386bcede7b57b193c658dcbb9d22004cde7580 affected from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, before 1c8c354098ea9d4376a58c96ae6b65288a6f15d8
Other versions: unaffected
|
| Linux |
affected 3.12 unaffected before 3.12 unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 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-39747 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39747
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-39747
trivy image --scanners vuln IMAGE | grep CVE-2025-39747
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/53dc780c1e94ea782d8936b41bfaa83c663702eb git.kernel.org
- https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268 git.kernel.org
- https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580 git.kernel.org
- https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8 git.kernel.org
Source: the record CVE-2025-39747 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