CVE-2025-39747
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-11

Last updated on: 2025-11-25

Assigner: kernel.org

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/
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-11
Last Modified
2025-11-25
Generated
2026-05-07
AI Q&A
2025-09-11
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-476 The product dereferences a pointer that it expects to be valid but is NULL.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is in the Linux kernel's drm/msm component, where the function msm_ioctl_gem_info_set_metadata did not properly handle a failure from the krealloc memory allocation function. Without proper error handling, a NULL pointer dereference could occur, potentially causing a crash or other unintended behavior. The patch adds error handling to check for krealloc failure and returns an error code (-ENOMEM) to avoid this issue.


How can this vulnerability impact me? :

If exploited, this vulnerability could lead to a NULL pointer dereference in the Linux kernel, which may cause system crashes or instability. This could impact system reliability and availability, potentially leading to denial of service conditions.


What immediate steps should I take to mitigate this vulnerability?

Apply the patch that adds error handling for krealloc in the msm_ioctl_gem_info_set_metadata() function in the Linux kernel drm/msm driver. This patch prevents NULL pointer dereference by checking for krealloc failure and returning -ENOMEM. Avoid using __GFP_NOFAIL in this context due to deadlock risks and allocation constraints.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart