CVE-2022-50819
kernel: udmabuf: Set ubuf->sg = NULL if the creation of sg table fails
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 30, 2025
Updated · July 22, 2026
Description
A flaw was found in the Linux kernel’s udmabuf subsystem where the scatter-gather (sg) pointer was not properly set to NULL if creation of the sg table failed. If userspace attempts to map a dmabuf and the sg table allocation fails (e.g., due to memory exhaustion), the kernel later attempts to free an invalid sg pointer during dmabuf release, causing a NULL pointer dereference and kernel crash
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 4.9CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
CWE-476 · NULL Pointer Dereference