dma-buf: Fix NULL pointer dereference in sanitycheck()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dma-buf: Fix NULL pointer dereference in sanitycheck()
If due to a memory allocation failure mock_chain() returns NULL, it is passed to dma_fence_enable_sw_signaling() resulting in NULL pointer dereference there.
Call dma_fence_enable_sw_signaling() only if mock_chain() succeeds.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
In the Linux kernel's dma-buf sanitycheck(), a memory allocation failure can cause a NULL pointer dereference when mock_chain() returns NULL. The input does not establish whether an attacker can trigger this condition, or whether doing so requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their versions; the affected versions are not specified in the input.