# CVE-2024-26984: nouveau: fix instmem race condition around ptr stores

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.29% (percentile 14, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2024-05-01T05:27:20.506Z
- **Modified:** 2026-06-17T07:18:51.640Z

## Who should check

- Anyone running Linux \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< bba8ec5e9b16649d85bc9e9086bf7ae5b5716ff9; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 13d76b2f443dc371842916dd8768009ff1594716; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 3ab056814cd8ab84744c9a19ef51360b2271c572; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< ad74d208f213c06d860916ad40f609ade8c13039; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< a019b44b1bc6ed224c46fb5f88a8a10dd116e525; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 21ca9539f09360fd83654f78f2c361f2f5ddcb52; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< fff1386cc889d8fb4089d285f883f8cba62d82ce
- Anyone running Linux 4.15

## Description

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

nouveau: fix instmem race condition around ptr stores

Running a lot of VK CTS in parallel against nouveau, once every
few hours you might see something like this crash.

BUG: kernel NULL pointer dereference, address: 0000000000000008
PGD 8000000114e6e067 P4D 8000000114e6e067 PUD 109046067 PMD 0
Oops: 0000 \[\#1\] PREEMPT SMP PTI
CPU: 7 PID: 53891 Comm: deqp-vk Not tainted 6.8.0-rc6+ \#27
Hardware name: Gigabyte Technology Co., Ltd. Z390 I AORUS PRO WIFI/Z390 I AORUS PRO WIFI-CF, BIOS F8 11/05/2021
RIP: 0010:gp100\_vmm\_pgt\_mem+0xe3/0x180 \[nouveau\]
Code: c7 48 01 c8 49 89 45 58 85 d2 0f 84 95 00 00 00 41 0f b7 46 12 49 8b 7e 08 89 da 42 8d 2c f8 48 8b 47 08 41 83 c7 01 48 89 ee \<48\> 8b 40 08 ff d0 0f 1f 00 49 8b 7e 08 48 89 d9 48 8d 75 04 48 c1
RSP: 0000:ffffac20c5857838 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 00000000004d8001 RCX: 0000000000000001
RDX: 00000000004d8001 RSI: 00000000000006d8 RDI: ffffa07afe332180
RBP: 00000000000006d8 R08: ffffac20c5857ad0 R09: 0000000000ffff10
R10: 0000000000000001 R11: ffffa07af27e2de0 R12: 000000000000001c
R13: ffffac20c5857ad0 R14: ffffa07a96fe9040 R15: 000000000000001c
FS:  00007fe395eed7c0(0000) GS:ffffa07e2c980000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 000000011febe001 CR4: 00000000003706f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:

...

 ? gp100\_vmm\_pgt\_mem+0xe3/0x180 \[nouveau\]
 ? gp100\_vmm\_pgt\_mem+0x37/0x180 \[nouveau\]
 nvkm\_vmm\_iter+0x351/0xa20 \[nouveau\]
 ? \_\_pfx\_nvkm\_vmm\_ref\_ptes+0x10/0x10 \[nouveau\]
 ? \_\_pfx\_gp100\_vmm\_pgt\_mem+0x10/0x10 \[nouveau\]
 ? \_\_pfx\_gp100\_vmm\_pgt\_mem+0x10/0x10 \[nouveau\]
 ? \_\_lock\_acquire+0x3ed/0x2170
 ? \_\_pfx\_gp100\_vmm\_pgt\_mem+0x10/0x10 \[nouveau\]
 nvkm\_vmm\_ptes\_get\_map+0xc2/0x100 \[nouveau\]
 ? \_\_pfx\_nvkm\_vmm\_ref\_ptes+0x10/0x10 \[nouveau\]
 ? \_\_pfx\_gp100\_vmm\_pgt\_mem+0x10/0x10 \[nouveau\]
 nvkm\_vmm\_map\_locked+0x224/0x3a0 \[nouveau\]

Adding any sort of useful debug usually makes it go away, so I hand
wrote the function in a line, and debugged the asm.

Every so often pt-\>memory-\>ptrs is NULL. This ptrs ptr is set in
the nv50\_instobj\_acquire called from nvkm\_kmap.

If Thread A and Thread B both get to nv50\_instobj\_acquire around
the same time, and Thread A hits the refcount\_set line, and in
lockstep thread B succeeds at refcount\_inc\_not\_zero, there is a
chance the ptrs value won't have been stored since refcount\_set
is unordered. Force a memory barrier here, I picked smp\_mb, since
we want it on all CPUs and it's write followed by a read.

v2: use paired smp\_rmb/smp\_wmb.

## Affected and fixed versions

- Linux: \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< bba8ec5e9b16649d85bc9e9086bf7ae5b5716ff9; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 13d76b2f443dc371842916dd8768009ff1594716; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 3ab056814cd8ab84744c9a19ef51360b2271c572; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< ad74d208f213c06d860916ad40f609ade8c13039; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< a019b44b1bc6ed224c46fb5f88a8a10dd116e525; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 21ca9539f09360fd83654f78f2c361f2f5ddcb52; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< fff1386cc889d8fb4089d285f883f8cba62d82ce (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26984.md
Affected: Linux >= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, < bba8ec5e9b16649d85bc9e9086bf7ae5b5716ff9; >= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, < 1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7; >= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, < 13d76b2f443dc371842916dd8768009ff1594716; >= be55287aa5ba6895e9d4d3e…
Fixed in: Linux 1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7, Linux 13d76b2f443dc371842916dd8768009ff1594716, Linux 3ab056814cd8ab84744c9a19ef51360b2271c572, Linux 21ca9539f09360fd83654f78f2c361f2f5ddcb52

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-26984 being exploited?

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

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

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

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

Linux \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< bba8ec5e9b16649d85bc9e9086bf7ae5b5716ff9; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 13d76b2f443dc371842916dd8768009ff1594716; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 3ab056814cd8ab84744c9a19ef51360b2271c572; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< ad74d208f213c06d860916ad40f609ade8c13039; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< a019b44b1bc6ed224c46fb5f88a8a10dd116e525; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< 21ca9539f09360fd83654f78f2c361f2f5ddcb52; \>= be55287aa5ba6895e9d4d3ed2f08a1be7a065957, \< fff1386cc889d8fb4089d285f883f8cba62d82ce; Linux 4.15.

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

Yes. Fixed in Linux 1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7, Linux 13d76b2f443dc371842916dd8768009ff1594716, Linux 3ab056814cd8ab84744c9a19ef51360b2271c572, Linux 21ca9539f09360fd83654f78f2c361f2f5ddcb52. No fix listed yet: follow the vendor advisory.

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

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/bba8ec5e9b16649d85bc9e9086bf7ae5b5716ff9>
- patch: <https://git.kernel.org/stable/c/1bc4825d4c3ec6abe43cf06c3c39d664d044cbf7>
- patch: <https://git.kernel.org/stable/c/13d76b2f443dc371842916dd8768009ff1594716>
- patch: <https://git.kernel.org/stable/c/3ab056814cd8ab84744c9a19ef51360b2271c572>
- patch: <https://git.kernel.org/stable/c/ad74d208f213c06d860916ad40f609ade8c13039>
- patch: <https://git.kernel.org/stable/c/a019b44b1bc6ed224c46fb5f88a8a10dd116e525>
- patch: <https://git.kernel.org/stable/c/21ca9539f09360fd83654f78f2c361f2f5ddcb52>
- patch: <https://git.kernel.org/stable/c/fff1386cc889d8fb4089d285f883f8cba62d82ce>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## 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-26984>

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