dma-buf/dma-fence: fix checking signaling bit for timeline and driver name v3
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel a4db25b8949d6ff9c1a685a1273a015e8bab29db, Kernel 7.2, Kernel 3ed11c671ff7ec58c8fd96410233c677df23f407 and 1 more.
In the Linux kernel, the following vulnerability has been resolved: dma-buf/dma-fence: fix checking signaling bit for timeline and driver name v3 The patch "dma-buf: dma-fence: Fix potential NULL pointer dereference" changed the check to test for the ops pointer instead of the signaled bit to avoid a potential NULL dereference when the ops pointer has been cleared. The problem is now that the ops pointer is cleared only when neither the release nor the wait callback is implemented and this isn't true for a lot of dma_fence implementations yet. So those implementations lost the RCU protection after signaling of the returned string resulting in potential use after free. Add the signaling check additional to the ops pointer check so that we have both the protection against NULL dereference as well as the RCU protection after signaling for the returned string. v2: improve comments to note RCU protection and explain why we check both signaling state and ops pointer v3: some comment improvements suggested by Philip
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =7.2, >=035219a760edb35ae9a9e96beba7f122e26a997b <a4db25b8949d6ff9c1a685a1273a015e8bab29db, >=7.1.5 <7.2, =15ecfdf0ef6f6d874d0a26690d300857b39ebfd0, >=035219a760edb35ae9a9e96beba7f122e26a997b <3ed11c671ff7ec58c8fd96410233c677df23f407 | a4db25b8949d6ff9c1a685a1273a015e8bab29db, 7.2, 3ed11c671ff7ec58c8fd96410233c677df23f407 |
| linux-kernel: Kernel | >=7.2.0 <7.2.8, >=7.1.5 <7.2 | 7.2.8, 7.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket