# CVE-2024-35932: drm/vc4: don't check if plane-\>state-\>fb == state-\>fb

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-19T10:10:40.353Z
- **Modified:** 2026-08-05T11:31:03.835Z

## Who should check

- Anyone running Linux \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< d6b2fe2db1d0927b2d7df5c763eba55d0e1def3c; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 5343f724c912c77541029123f47ecd3d2ea63bdd; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9
- Anyone running Linux 4.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/vc4: don't check if plane-\>state-\>fb == state-\>fb

Currently, when using non-blocking commits, we can see the following
kernel warning:

\[  110.908514\] ------------\[ cut here \]------------
\[  110.908529\] refcount\_t: underflow; use-after-free.
\[  110.908620\] WARNING: CPU: 0 PID: 1866 at lib/refcount.c:87 refcount\_dec\_not\_one+0xb8/0xc0
\[  110.908664\] Modules linked in: rfcomm snd\_seq\_dummy snd\_hrtimer snd\_seq snd\_seq\_device cmac algif\_hash aes\_arm64 aes\_generic algif\_skcipher af\_alg bnep hid\_logitech\_hidpp vc4 brcmfmac hci\_uart btbcm brcmutil bluetooth snd\_soc\_hdmi\_codec cfg80211 cec drm\_display\_helper drm\_dma\_helper drm\_kms\_helper snd\_soc\_core snd\_compress snd\_pcm\_dmaengine fb\_sys\_fops sysimgblt syscopyarea sysfillrect raspberrypi\_hwmon ecdh\_generic ecc rfkill libaes i2c\_bcm2835 binfmt\_misc joydev snd\_bcm2835(C) bcm2835\_codec(C) bcm2835\_isp(C) v4l2\_mem2mem videobuf2\_dma\_contig snd\_pcm bcm2835\_v4l2(C) raspberrypi\_gpiomem bcm2835\_mmal\_vchiq(C) videobuf2\_v4l2 snd\_timer videobuf2\_vmalloc videobuf2\_memops videobuf2\_common snd videodev vc\_sm\_cma(C) mc hid\_logitech\_dj uio\_pdrv\_genirq uio i2c\_dev drm fuse dm\_mod drm\_panel\_orientation\_quirks backlight ip\_tables x\_tables ipv6
\[  110.909086\] CPU: 0 PID: 1866 Comm: kodi.bin Tainted: G         C         6.1.66-v8+ \#32
\[  110.909104\] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
\[  110.909114\] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  110.909132\] pc : refcount\_dec\_not\_one+0xb8/0xc0
\[  110.909152\] lr : refcount\_dec\_not\_one+0xb4/0xc0
\[  110.909170\] sp : ffffffc00913b9c0
\[  110.909177\] x29: ffffffc00913b9c0 x28: 000000556969bbb0 x27: 000000556990df60
\[  110.909205\] x26: 0000000000000002 x25: 0000000000000004 x24: ffffff8004448480
\[  110.909230\] x23: ffffff800570b500 x22: ffffff802e03a7bc x21: ffffffecfca68c78
\[  110.909257\] x20: ffffff8002b42000 x19: ffffff802e03a600 x18: 0000000000000000
\[  110.909283\] x17: 0000000000000011 x16: ffffffffffffffff x15: 0000000000000004
\[  110.909308\] x14: 0000000000000fff x13: ffffffed577e47e0 x12: 0000000000000003
\[  110.909333\] x11: 0000000000000000 x10: 0000000000000027 x9 : c912d0d083728c00
\[  110.909359\] x8 : c912d0d083728c00 x7 : 65646e75203a745f x6 : 746e756f63666572
\[  110.909384\] x5 : ffffffed579f62ee x4 : ffffffed579eb01e x3 : 0000000000000000
\[  110.909409\] x2 : 0000000000000000 x1 : ffffffc00913b750 x0 : 0000000000000001
\[  110.909434\] Call trace:
\[  110.909441\]  refcount\_dec\_not\_one+0xb8/0xc0
\[  110.909461\]  vc4\_bo\_dec\_usecnt+0x4c/0x1b0 \[vc4\]
\[  110.909903\]  vc4\_cleanup\_fb+0x44/0x50 \[vc4\]
\[  110.910315\]  drm\_atomic\_helper\_cleanup\_planes+0x88/0xa4 \[drm\_kms\_helper\]
\[  110.910669\]  vc4\_atomic\_commit\_tail+0x390/0x9dc \[vc4\]
\[  110.911079\]  commit\_tail+0xb0/0x164 \[drm\_kms\_helper\]
\[  110.911397\]  drm\_atomic\_helper\_commit+0x1d0/0x1f0 \[drm\_kms\_helper\]
\[  110.911716\]  drm\_atomic\_commit+0xb0/0xdc \[drm\]
\[  110.912569\]  drm\_mode\_atomic\_ioctl+0x348/0x4b8 \[drm\]
\[  110.913330\]  drm\_ioctl\_kernel+0xec/0x15c \[drm\]
\[  110.914091\]  drm\_ioctl+0x24c/0x3b0 \[drm\]
\[  110.914850\]  \_\_arm64\_sys\_ioctl+0x9c/0xd4
\[  110.914873\]  invoke\_syscall+0x4c/0x114
\[  110.914897\]  el0\_svc\_common+0xd0/0x118
\[  110.914917\]  do\_el0\_svc+0x38/0xd0
\[  110.914936\]  el0\_svc+0x30/0x8c
\[  110.914958\]  el0t\_64\_sync\_handler+0x84/0xf0
\[  110.914979\]  el0t\_64\_sync+0x18c/0x190
\[  110.914996\] ---\[ end trace 0000000000000000 \]---

This happens because, although \`prepare\_fb\` and \`cleanup\_fb\` are
perfectly balanced, we cannot guarantee consistency in the check
plane-\>state-\>fb == state-\>fb. This means that sometimes we can increase
the refcount in \`prepare\_fb\` and don't decrease it in \`cleanup\_fb\`. The
opposite can also be true.

In fact, the struct drm\_plane .state shouldn't be accessed directly
but instead, the \`drm\_atomic\_get\_new\_plane\_state()\` helper function should
be used. So, we could stick to this check, but using
\`drm\_atomic\_get\_new\_plane\_state()\`. But actually, this check is not re
---truncated---

## Affected and fixed versions

- Linux: \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< d6b2fe2db1d0927b2d7df5c763eba55d0e1def3c; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 5343f724c912c77541029123f47ecd3d2ea63bdd; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9 (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- Upgrade Linux to 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35932. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35932.md
Affected: Linux >= b9f19259b84dc648f207a46f3581d15eeaedf4b6, < 48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40; >= b9f19259b84dc648f207a46f3581d15eeaedf4b6, < d6b2fe2db1d0927b2d7df5c763eba55d0e1def3c; >= b9f19259b84dc648f207a46f3581d15eeaedf4b6, < 5343f724c912c77541029123f47ecd3d2ea63bdd; >= b9f19259b84dc648f207a46…
Fixed in: Linux 48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40, Linux 5343f724c912c77541029123f47ecd3d2ea63bdd, Linux 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35932 being exploited?

There is no confirmed exploitation: CVE-2024-35932 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35932?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35932?

Linux \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< d6b2fe2db1d0927b2d7df5c763eba55d0e1def3c; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 5343f724c912c77541029123f47ecd3d2ea63bdd; \>= b9f19259b84dc648f207a46f3581d15eeaedf4b6, \< 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9; Linux 4.15.

### Is there a fix for CVE-2024-35932?

Yes. Fixed in Linux 48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40, Linux 5343f724c912c77541029123f47ecd3d2ea63bdd, Linux 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9. Upgrade Linux to 5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9 or later.

### How do I check if I'm affected by CVE-2024-35932?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/48bfb4b03c5ff6e1fa1dc73fb915e150b0968c40>
- patch: <https://git.kernel.org/stable/c/d6b2fe2db1d0927b2d7df5c763eba55d0e1def3c>
- patch: <https://git.kernel.org/stable/c/5343f724c912c77541029123f47ecd3d2ea63bdd>
- patch: <https://git.kernel.org/stable/c/5ee0d47dcf33efd8950b347dcf4d20bab12a3fa9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35932>

HTML: <https://flawdb.com/CVE-2024-35932> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35932>
