# CVE-2024-43874: crypto: ccp - Fix null pointer dereference in \_\_sev\_snp\_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.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-08-21T00:06:26.153Z
- **Modified:** 2026-06-17T07:51:54.133Z

## Who should check

- Anyone running Linux \>= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, \< bbf2c94503f6a421ed9b79e300d8085810da765d; \>= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, \< 468e3295774d0edce15f4ae475913b5076dd4f40
- Anyone running Linux 6.9

## Description

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

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

Fix a null pointer dereference induced by DEBUG\_TEST\_DRIVER\_REMOVE.
Return from \_\_sev\_snp\_shutdown\_locked() if the psp\_device or the
sev\_device structs are not initialized. Without the fix, the driver will
produce the following splat:

   ccp 0000:55:00.5: enabling device (0000 -\> 0002)
   ccp 0000:55:00.5: sev enabled
   ccp 0000:55:00.5: psp enabled
   BUG: kernel NULL pointer dereference, address: 00000000000000f0
   \#PF: supervisor read access in kernel mode
   \#PF: error\_code(0x0000) - not-present page
   PGD 0 P4D 0
   Oops: 0000 \[\#1\] PREEMPT SMP DEBUG\_PAGEALLOC NOPTI
   CPU: 262 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1+ \#29
   RIP: 0010:\_\_sev\_snp\_shutdown\_locked+0x2e/0x150
   Code: 00 55 48 89 e5 41 57 41 56 41 54 53 48 83 ec 10 41 89 f7 49 89 fe 65 48 8b 04 25 28 00 00 00 48 89 45 d8 48 8b 05 6a 5a 7f 06 \<4c\> 8b a0 f0 00 00 00 41 0f b6 9c 24 a2 00 00 00 48 83 fb 02 0f 83
   RSP: 0018:ffffb2ea4014b7b8 EFLAGS: 00010286
   RAX: 0000000000000000 RBX: ffff9e4acd2e0a28 RCX: 0000000000000000
   RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb2ea4014b808
   RBP: ffffb2ea4014b7e8 R08: 0000000000000106 R09: 000000000003d9c0
   R10: 0000000000000001 R11: ffffffffa39ff070 R12: ffff9e49d40590c8
   R13: 0000000000000000 R14: ffffb2ea4014b808 R15: 0000000000000000
   FS:  0000000000000000(0000) GS:ffff9e58b1e00000(0000) knlGS:0000000000000000
   CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
   CR2: 00000000000000f0 CR3: 0000000418a3e001 CR4: 0000000000770ef0
   PKRU: 55555554
   Call Trace:
    \<TASK\>
    ? \_\_die\_body+0x6f/0xb0
    ? \_\_die+0xcc/0xf0
    ? page\_fault\_oops+0x330/0x3a0
    ? save\_trace+0x2a5/0x360
    ? do\_user\_addr\_fault+0x583/0x630
    ? exc\_page\_fault+0x81/0x120
    ? asm\_exc\_page\_fault+0x2b/0x30
    ? \_\_sev\_snp\_shutdown\_locked+0x2e/0x150
    \_\_sev\_firmware\_shutdown+0x349/0x5b0
    ? pm\_runtime\_barrier+0x66/0xe0
    sev\_dev\_destroy+0x34/0xb0
    psp\_dev\_destroy+0x27/0x60
    sp\_destroy+0x39/0x90
    sp\_pci\_remove+0x22/0x60
    pci\_device\_remove+0x4e/0x110
    really\_probe+0x271/0x4e0
    \_\_driver\_probe\_device+0x8f/0x160
    driver\_probe\_device+0x24/0x120
    \_\_driver\_attach+0xc7/0x280
    ? driver\_attach+0x30/0x30
    bus\_for\_each\_dev+0x10d/0x130
    driver\_attach+0x22/0x30
    bus\_add\_driver+0x171/0x2b0
    ? unaccepted\_memory\_init\_kdump+0x20/0x20
    driver\_register+0x67/0x100
    \_\_pci\_register\_driver+0x83/0x90
    sp\_pci\_init+0x22/0x30
    sp\_mod\_init+0x13/0x30
    do\_one\_initcall+0xb8/0x290
    ? sched\_clock\_noinstr+0xd/0x10
    ? local\_clock\_noinstr+0x3e/0x100
    ? stack\_depot\_save\_flags+0x21e/0x6a0
    ? local\_clock+0x1c/0x60
    ? stack\_depot\_save\_flags+0x21e/0x6a0
    ? sched\_clock\_noinstr+0xd/0x10
    ? local\_clock\_noinstr+0x3e/0x100
    ? \_\_lock\_acquire+0xd90/0xe30
    ? sched\_clock\_noinstr+0xd/0x10
    ? local\_clock\_noinstr+0x3e/0x100
    ? \_\_create\_object+0x66/0x100
    ? local\_clock+0x1c/0x60
    ? \_\_create\_object+0x66/0x100
    ? parameq+0x1b/0x90
    ? parse\_one+0x6d/0x1d0
    ? parse\_args+0xd7/0x1f0
    ? do\_initcall\_level+0x180/0x180
    do\_initcall\_level+0xb0/0x180
    do\_initcalls+0x60/0xa0
    ? kernel\_init+0x1f/0x1d0
    do\_basic\_setup+0x41/0x50
    kernel\_init\_freeable+0x1ac/0x230
    ? rest\_init+0x1f0/0x1f0
    kernel\_init+0x1f/0x1d0
    ? rest\_init+0x1f0/0x1f0
    ret\_from\_fork+0x3d/0x50
    ? rest\_init+0x1f0/0x1f0
    ret\_from\_fork\_asm+0x11/0x20
    \</TASK\>
   Modules linked in:
   CR2: 00000000000000f0
   ---\[ end trace 0000000000000000 \]---
   RIP: 0010:\_\_sev\_snp\_shutdown\_locked+0x2e/0x150
   Code: 00 55 48 89 e5 41 57 41 56 41 54 53 48 83 ec 10 41 89 f7 49 89 fe 65 48 8b 04 25 28 00 00 00 48 89 45 d8 48 8b 05 6a 5a 7f 06 \<4c\> 8b a0 f0 00 00 00 41 0f b6 9c 24 a2 00 00 00 48 83 fb 02 0f 83
   RSP: 0018:ffffb2ea4014b7b8 EFLAGS: 00010286
   RAX: 0000000000000000 RBX: ffff9e4acd2e0a28 RCX: 0000000000000000
   RDX: 0000000
---truncated---

## Affected and fixed versions

- Linux: \>= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, \< bbf2c94503f6a421ed9b79e300d8085810da765d; \>= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, \< 468e3295774d0edce15f4ae475913b5076dd4f40 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 468e3295774d0edce15f4ae475913b5076dd4f40 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-43874. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-43874.md
Affected: Linux >= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, < bbf2c94503f6a421ed9b79e300d8085810da765d; >= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, < 468e3295774d0edce15f4ae475913b5076dd4f40; Linux 6.9
Fixed in: Linux 468e3295774d0edce15f4ae475913b5076dd4f40

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

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

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

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

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

Linux \>= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, \< bbf2c94503f6a421ed9b79e300d8085810da765d; \>= 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2, \< 468e3295774d0edce15f4ae475913b5076dd4f40; Linux 6.9.

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

Yes. Fixed in Linux 468e3295774d0edce15f4ae475913b5076dd4f40. Upgrade Linux to 468e3295774d0edce15f4ae475913b5076dd4f40 or later.

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

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/bbf2c94503f6a421ed9b79e300d8085810da765d>
- patch: <https://git.kernel.org/stable/c/468e3295774d0edce15f4ae475913b5076dd4f40>

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

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