CVE-2025-37765

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37765
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37765.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37765
Downstream
Related
Published
2025-05-01T13:07:06.498Z
Modified
2025-11-28T02:34:24.991525Z
Summary
drm/nouveau: prime: fix ttm_bo_delayed_delete oops
Details

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

drm/nouveau: prime: fix ttmbodelayed_delete oops

Fix an oops in ttmbodelayed_delete which results from dererencing a dangling pointer:

Oops: general protection fault, probably for non-canonical address 0x6b6b6b6b6b6b6b7b: 0000 [#1] PREEMPT SMP CPU: 4 UID: 0 PID: 1082 Comm: kworker/u65:2 Not tainted 6.14.0-rc4-00267-g505460b44513-dirty #216 Hardware name: LENOVO 82N6/LNVNB161216, BIOS GKCN65WW 01/16/2024 Workqueue: ttm ttmbodelayeddelete [ttm] RIP: 0010:dmaresviterfirstunlocked+0x55/0x290 Code: 31 f6 48 c7 c7 00 2b fa aa e8 97 bd 52 ff e8 a2 c1 53 00 5a 85 c0 74 48 e9 88 01 00 00 4c 89 63 20 4d 85 e4 0f 84 30 01 00 00 <41> 8b 44 24 10 c6 43 2c 01 48 89 df 89 43 28 e8 97 fd ff ff 4c 8b RSP: 0018:ffffbf9383473d60 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffffbf9383473d88 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffbf9383473d78 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 6b6b6b6b6b6b6b6b R13: ffffa003bbf78580 R14: ffffa003a6728040 R15: 00000000000383cc FS: 0000000000000000(0000) GS:ffffa00991c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000758348024dd0 CR3: 000000012c259000 CR4: 0000000000f50ef0 PKRU: 55555554 Call Trace: <TASK> ? _diebody.cold+0x19/0x26 ? dieaddr+0x3d/0x70 ? excgeneralprotection+0x159/0x460 ? asmexcgeneralprotection+0x27/0x30 ? dmaresviterfirstunlocked+0x55/0x290 dmaresvwaittimeout+0x56/0x100 ttmbodelayeddelete+0x69/0xb0 [ttm] processonework+0x217/0x5c0 workerthread+0x1c8/0x3d0 ? applywqattrscleanup.part.0+0xc0/0xc0 kthread+0x10b/0x240 ? kthreadsonlinecpu+0x140/0x140 retfromfork+0x40/0x70 ? kthreadsonlinecpu+0x140/0x140 retfromfork_asm+0x11/0x20 </TASK>

The cause of this is:

  • drmprimegemdestroy calls dmabufput(dmabuf) which releases the reference to the shared dmabuf. The reference count is 0, so the dmabuf is destroyed, which in turn decrements the corresponding amdgpubo reference count to 0, and the amdgpubo is destroyed - calling drmgemobjectrelease then dmaresvfini (which destroys the reservation object), then finally freeing the amdgpubo.

  • nouveaubo obj->bo.base.resv is now a dangling pointer to the memory formerly allocated to the amdgpubo.

  • nouveaugemobjectdel calls ttmboput(&nvbo->bo) which calls ttmborelease, which schedules ttmbodelayeddelete.

  • ttmbodelayed_delete runs and dereferences the dangling resv pointer, resulting in a general protection fault.

Fix this by moving the drmprimegemdestroy call from nouveaugemobjectdel to nouveaubodelttm. This ensures that it will be run after ttmbodelayeddelete.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37765.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
22b33e8ed0e38b8ddcf082e35580f2e67a3a0262
Fixed
706868a1a1072cffd8bd63f7e161d79141099849
Fixed
47761deabb69a5df0c2c4ec400d80bb3e072bd2e
Fixed
ada78110b2d3ec88b398a49703bd336d4cee7a08
Fixed
12b038d521c75e3521522503becf3bc162628469
Fixed
31e94c7989572f96926673614a3b958915a13ca9
Fixed
6e2c805996a49998d31ac522beb1534ca417e761
Fixed
6b95947ee780f4e1fb26413a1437d05bcb99712b
Fixed
8ec0fbb28d049273bfd4f1e7a5ae4c74884beed3

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.5.0
Fixed
5.4.293
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.237
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.181
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.135
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.88
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.25
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.4