# CVE-2024-26695: crypto: ccp - Fix null pointer dereference in \_\_sev\_platform\_shutdown\_locked

> 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.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-04-03T14:54:56.184Z
- **Modified:** 2026-06-17T07:18:07.017Z

## Who should check

- Anyone running Linux \>= 87af9b0b45666ca3dd6b10c0ece691c740b0f750, \< 58054faf3bd29cd0b949b77efcb6157f66f401ed; \>= f831d2882c843d44100016aeb4332e9c4b560805, \< 7535ec350a5f09b5756a7607f5582913f21200f4; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< 8731fe001a60581794ed9cf65da8cd304846a6fb; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< 88aa493f393d2ee38ac140e1f6ac1881346e85d4; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< b5909f197f3b26aebedca7d8ac7b688fd993a266; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< ccb88e9549e7cfd8bcd511c538f437e20026e983; fcb04178c05b88a98921e262da9f7cb21cfff118; d87bbd10fc01b52c814113643f2707d2d10b0319; \>= 5.10.137, \< 5.10.210; \>= 5.15.61, \< 5.15.149; …
- Anyone running Linux 6.0

## Description

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

crypto: ccp - Fix null pointer dereference in \_\_sev\_platform\_shutdown\_locked

The SEV platform device can be shutdown with a null psp\_master,
e.g., using DEBUG\_TEST\_DRIVER\_REMOVE.  Found using KASAN:

\[  137.148210\] ccp 0000:23:00.1: enabling device (0000 -\> 0002)
\[  137.162647\] ccp 0000:23:00.1: no command queues available
\[  137.170598\] ccp 0000:23:00.1: sev enabled
\[  137.174645\] ccp 0000:23:00.1: psp enabled
\[  137.178890\] general protection fault, probably for non-canonical address 0xdffffc000000001e: 0000 \[\#1\] PREEMPT SMP DEBUG\_PAGEALLOC KASAN NOPTI
\[  137.182693\] KASAN: null-ptr-deref in range \[0x00000000000000f0-0x00000000000000f7\]
\[  137.182693\] CPU: 93 PID: 1 Comm: swapper/0 Not tainted 6.8.0-rc1+ \#311
\[  137.182693\] RIP: 0010:\_\_sev\_platform\_shutdown\_locked+0x51/0x180
\[  137.182693\] Code: 08 80 3c 08 00 0f 85 0e 01 00 00 48 8b 1d 67 b6 01 08 48 b8 00 00 00 00 00 fc ff df 48 8d bb f0 00 00 00 48 89 f9 48 c1 e9 03 \<80\> 3c 01 00 0f 85 fe 00 00 00 48 8b 9b f0 00 00 00 48 85 db 74 2c
\[  137.182693\] RSP: 0018:ffffc900000cf9b0 EFLAGS: 00010216
\[  137.182693\] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 000000000000001e
\[  137.182693\] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 00000000000000f0
\[  137.182693\] RBP: ffffc900000cf9c8 R08: 0000000000000000 R09: fffffbfff58f5a66
\[  137.182693\] R10: ffffc900000cf9c8 R11: ffffffffac7ad32f R12: ffff8881e5052c28
\[  137.182693\] R13: ffff8881e5052c28 R14: ffff8881758e43e8 R15: ffffffffac64abf8
\[  137.182693\] FS:  0000000000000000(0000) GS:ffff889de7000000(0000) knlGS:0000000000000000
\[  137.182693\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  137.182693\] CR2: 0000000000000000 CR3: 0000001cf7c7e000 CR4: 0000000000350ef0
\[  137.182693\] Call Trace:
\[  137.182693\]  \<TASK\>
\[  137.182693\]  ? show\_regs+0x6c/0x80
\[  137.182693\]  ? \_\_die\_body+0x24/0x70
\[  137.182693\]  ? die\_addr+0x4b/0x80
\[  137.182693\]  ? exc\_general\_protection+0x126/0x230
\[  137.182693\]  ? asm\_exc\_general\_protection+0x2b/0x30
\[  137.182693\]  ? \_\_sev\_platform\_shutdown\_locked+0x51/0x180
\[  137.182693\]  sev\_firmware\_shutdown.isra.0+0x1e/0x80
\[  137.182693\]  sev\_dev\_destroy+0x49/0x100
\[  137.182693\]  psp\_dev\_destroy+0x47/0xb0
\[  137.182693\]  sp\_destroy+0xbb/0x240
\[  137.182693\]  sp\_pci\_remove+0x45/0x60
\[  137.182693\]  pci\_device\_remove+0xaa/0x1d0
\[  137.182693\]  device\_remove+0xc7/0x170
\[  137.182693\]  really\_probe+0x374/0xbe0
\[  137.182693\]  ? srso\_return\_thunk+0x5/0x5f
\[  137.182693\]  \_\_driver\_probe\_device+0x199/0x460
\[  137.182693\]  driver\_probe\_device+0x4e/0xd0
\[  137.182693\]  \_\_driver\_attach+0x191/0x3d0
\[  137.182693\]  ? \_\_pfx\_\_\_driver\_attach+0x10/0x10
\[  137.182693\]  bus\_for\_each\_dev+0x100/0x190
\[  137.182693\]  ? \_\_pfx\_bus\_for\_each\_dev+0x10/0x10
\[  137.182693\]  ? \_\_kasan\_check\_read+0x15/0x20
\[  137.182693\]  ? srso\_return\_thunk+0x5/0x5f
\[  137.182693\]  ? \_raw\_spin\_unlock+0x27/0x50
\[  137.182693\]  driver\_attach+0x41/0x60
\[  137.182693\]  bus\_add\_driver+0x2a8/0x580
\[  137.182693\]  driver\_register+0x141/0x480
\[  137.182693\]  \_\_pci\_register\_driver+0x1d6/0x2a0
\[  137.182693\]  ? srso\_return\_thunk+0x5/0x5f
\[  137.182693\]  ? esrt\_sysfs\_init+0x1cd/0x5d0
\[  137.182693\]  ? \_\_pfx\_sp\_mod\_init+0x10/0x10
\[  137.182693\]  sp\_pci\_init+0x22/0x30
\[  137.182693\]  sp\_mod\_init+0x14/0x30
\[  137.182693\]  ? \_\_pfx\_sp\_mod\_init+0x10/0x10
\[  137.182693\]  do\_one\_initcall+0xd1/0x470
\[  137.182693\]  ? \_\_pfx\_do\_one\_initcall+0x10/0x10
\[  137.182693\]  ? parameq+0x80/0xf0
\[  137.182693\]  ? srso\_return\_thunk+0x5/0x5f
\[  137.182693\]  ? \_\_kmalloc+0x3b0/0x4e0
\[  137.182693\]  ? kernel\_init\_freeable+0x92d/0x1050
\[  137.182693\]  ? kasan\_populate\_vmalloc\_pte+0x171/0x190
\[  137.182693\]  ? srso\_return\_thunk+0x5/0x5f
\[  137.182693\]  kernel\_init\_freeable+0xa64/0x1050
\[  137.182693\]  ? \_\_pfx\_kernel\_init+0x10/0x10
\[  137.182693\]  kernel\_init+0x24/0x160
\[  137.182693\]  ? \_\_switch\_to\_asm+0x3e/0x70
\[  137.182693\]  ret\_from\_fork+0x40/0x80
\[  137.182693\]  ? \_\_pfx\_kernel\_init+0x1
---truncated---

## Affected and fixed versions

- Linux: \>= 87af9b0b45666ca3dd6b10c0ece691c740b0f750, \< 58054faf3bd29cd0b949b77efcb6157f66f401ed; \>= f831d2882c843d44100016aeb4332e9c4b560805, \< 7535ec350a5f09b5756a7607f5582913f21200f4; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< 8731fe001a60581794ed9cf65da8cd304846a6fb; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< 88aa493f393d2ee38ac140e1f6ac1881346e85d4; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< b5909f197f3b26aebedca7d8ac7b688fd993a266; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< ccb88e9549e7cfd8bcd511c538f437e20026e983; fcb04178c05b88a98921e262da9f7cb21cfff118; d87bbd10fc01b52c814113643f2707d2d10b0319; \>= 5.10.137, \< 5.10.210; \>= 5.15.61, \< 5.15.149; … (cvelist)
- Linux: 6.0 (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-26695. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26695.md
Affected: Linux >= 87af9b0b45666ca3dd6b10c0ece691c740b0f750, < 58054faf3bd29cd0b949b77efcb6157f66f401ed; >= f831d2882c843d44100016aeb4332e9c4b560805, < 7535ec350a5f09b5756a7607f5582913f21200f4; >= 1b05ece0c931536c0a38a9385e243a7962e933f6, < 8731fe001a60581794ed9cf65da8cd304846a6fb; >= 1b05ece0c931536c0a38a93…
Fixed in: Linux 58054faf3bd29cd0b949b77efcb6157f66f401ed, Linux 7535ec350a5f09b5756a7607f5582913f21200f4, Linux 8731fe001a60581794ed9cf65da8cd304846a6fb, Linux 88aa493f393d2ee38ac140e1f6ac1881346e85d4, Linux 5.10.210, Linux 5.15.149

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

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

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

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

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

Linux \>= 87af9b0b45666ca3dd6b10c0ece691c740b0f750, \< 58054faf3bd29cd0b949b77efcb6157f66f401ed; \>= f831d2882c843d44100016aeb4332e9c4b560805, \< 7535ec350a5f09b5756a7607f5582913f21200f4; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< 8731fe001a60581794ed9cf65da8cd304846a6fb; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< 88aa493f393d2ee38ac140e1f6ac1881346e85d4; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< b5909f197f3b26aebedca7d8ac7b688fd993a266; \>= 1b05ece0c931536c0a38a9385e243a7962e933f6, \< ccb88e9549e7cfd8bcd511c538f437e20026e983; fcb04178c05b88a98921e262da9f7cb21cfff118; d87bbd10fc01b52c814113643f2707d2d10b0319; \>= 5.10.137, \< 5.10.210; \>= 5.15.61, \< 5.15.149; …; Linux 6.0.

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

Yes. Fixed in Linux 58054faf3bd29cd0b949b77efcb6157f66f401ed, Linux 7535ec350a5f09b5756a7607f5582913f21200f4, Linux 8731fe001a60581794ed9cf65da8cd304846a6fb, Linux 88aa493f393d2ee38ac140e1f6ac1881346e85d4, Linux 5.10.210, Linux 5.15.149. No fix listed yet: follow the vendor advisory.

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

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/58054faf3bd29cd0b949b77efcb6157f66f401ed>
- patch: <https://git.kernel.org/stable/c/7535ec350a5f09b5756a7607f5582913f21200f4>
- patch: <https://git.kernel.org/stable/c/8731fe001a60581794ed9cf65da8cd304846a6fb>
- patch: <https://git.kernel.org/stable/c/88aa493f393d2ee38ac140e1f6ac1881346e85d4>
- patch: <https://git.kernel.org/stable/c/b5909f197f3b26aebedca7d8ac7b688fd993a266>
- patch: <https://git.kernel.org/stable/c/ccb88e9549e7cfd8bcd511c538f437e20026e983>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

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

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