# CVE-2025-71293: drm/amdgpu/ras: Move ras data alloc before bad page check

> 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, NVD) `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.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-05-06T11:32:24.583Z
- **Modified:** 2026-11-05T22:17:40.240Z

## Who should check

- Anyone running Linux \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< 0b7f78caeffa51a1afa521c284e863ec3b5a36df; \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< 5c685235b60459381e959109b416a63db4d8dbac; \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< bd68a1404b6fa2e7e9957b38ba22616faba43e75
- Anyone running Linux 6.18

## Description

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

drm/amdgpu/ras: Move ras data alloc before bad page check

In the rare event if eeprom has only invalid address entries,
allocation is skipped, this causes following NULL pointer issue
\[  547.103445\] BUG: kernel NULL pointer dereference, address: 0000000000000010
\[  547.118897\] \#PF: supervisor read access in kernel mode
\[  547.130292\] \#PF: error\_code(0x0000) - not-present page
\[  547.141689\] PGD 124757067 P4D 0
\[  547.148842\] Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[  547.158504\] CPU: 49 PID: 8167 Comm: cat Tainted: G           OE      6.8.0-38-generic \#38-Ubuntu
\[  547.177998\] Hardware name: Supermicro AS -8126GS-TNMR/H14DSG-OD, BIOS 1.7 09/12/2025
\[  547.195178\] RIP: 0010:amdgpu\_ras\_sysfs\_badpages\_read+0x2f2/0x5d0 \[amdgpu\]
\[  547.210375\] Code: e8 63 78 82 c0 45 31 d2 45 3b 75 08 48 8b 45 a0 73 44 44 89 f1 48 8b 7d 88 48 89 ca 48 c1 e2 05 48 29 ca 49 8b 4d 00 48 01 d1 \<48\> 83 79 10 00 74 17 49 63 f2 48 8b 49 08 41 83 c2 01 48 8d 34 76
\[  547.252045\] RSP: 0018:ffa0000067287ac0 EFLAGS: 00010246
\[  547.263636\] RAX: ff11000167c28130 RBX: ff11000127600000 RCX: 0000000000000000
\[  547.279467\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ff11000125b1c800
\[  547.295298\] RBP: ffa0000067287b50 R08: 0000000000000000 R09: 0000000000000000
\[  547.311129\] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
\[  547.326959\] R13: ff11000217b1de00 R14: 0000000000000000 R15: 0000000000000092
\[  547.342790\] FS:  0000746e59d14740(0000) GS:ff11017dfda80000(0000) knlGS:0000000000000000
\[  547.360744\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  547.373489\] CR2: 0000000000000010 CR3: 000000019585e001 CR4: 0000000000f71ef0
\[  547.389321\] PKRU: 55555554
\[  547.395316\] Call Trace:
\[  547.400737\]  \<TASK\>
\[  547.405386\]  ? show\_regs+0x6d/0x80
\[  547.412929\]  ? \_\_die+0x24/0x80
\[  547.419697\]  ? page\_fault\_oops+0x99/0x1b0
\[  547.428588\]  ? do\_user\_addr\_fault+0x2ee/0x6b0
\[  547.438249\]  ? exc\_page\_fault+0x83/0x1b0
\[  547.446949\]  ? asm\_exc\_page\_fault+0x27/0x30
\[  547.456225\]  ? amdgpu\_ras\_sysfs\_badpages\_read+0x2f2/0x5d0 \[amdgpu\]
\[  547.470040\]  ? mas\_wr\_modify+0xcd/0x140
\[  547.478548\]  sysfs\_kf\_bin\_read+0x63/0xb0
\[  547.487248\]  kernfs\_file\_read\_iter+0xa1/0x190
\[  547.496909\]  kernfs\_fop\_read\_iter+0x25/0x40
\[  547.506182\]  vfs\_read+0x255/0x390

This also result in space left assigned to negative values.
Moving data alloc call before bad page check resolves both the issue.

## Affected and fixed versions

- Linux: \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< 0b7f78caeffa51a1afa521c284e863ec3b5a36df; \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< 5c685235b60459381e959109b416a63db4d8dbac; \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< bd68a1404b6fa2e7e9957b38ba22616faba43e75 (cvelist)
- Linux: 6.18 (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-2025-71293. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71293.md
Affected: Linux >= d45c5e6845a76169ef3d6076f0f04487e5776905, < 0b7f78caeffa51a1afa521c284e863ec3b5a36df; >= d45c5e6845a76169ef3d6076f0f04487e5776905, < 5c685235b60459381e959109b416a63db4d8dbac; >= d45c5e6845a76169ef3d6076f0f04487e5776905, < bd68a1404b6fa2e7e9957b38ba22616faba43e75; Linux 6.18
Fixed in: Linux 0b7f78caeffa51a1afa521c284e863ec3b5a36df, Linux 5c685235b60459381e959109b416a63db4d8dbac

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-2025-71293 being exploited?

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

### How serious is CVE-2025-71293?

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

### Which versions are affected by CVE-2025-71293?

Linux \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< 0b7f78caeffa51a1afa521c284e863ec3b5a36df; \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< 5c685235b60459381e959109b416a63db4d8dbac; \>= d45c5e6845a76169ef3d6076f0f04487e5776905, \< bd68a1404b6fa2e7e9957b38ba22616faba43e75; Linux 6.18.

### Is there a fix for CVE-2025-71293?

Yes. Fixed in Linux 0b7f78caeffa51a1afa521c284e863ec3b5a36df, Linux 5c685235b60459381e959109b416a63db4d8dbac. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-71293?

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/0b7f78caeffa51a1afa521c284e863ec3b5a36df>
- patch: <https://git.kernel.org/stable/c/5c685235b60459381e959109b416a63db4d8dbac>
- patch: <https://git.kernel.org/stable/c/bd68a1404b6fa2e7e9957b38ba22616faba43e75>

## 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-2025-71293>

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