# CVE-2024-26957: s390/zcrypt: fix reference counting on zcrypt card objects

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.34% (percentile 19, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-01T05:19:00.134Z
- **Modified:** 2026-10-15T01:17:33.657Z

## Who should check

- Anyone running Linux \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 7e500849fa558879a1cde43f80c7c048c2437058; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 9daddee03de3f231012014dab8ab2b277a116a55; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 6470078ab3d8f222115e11c4ec67351f3031b3dd; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< a55677878b93e9ebc31f66d0e2fb93be5e7836a6; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< b7f6c3630eb3f103115ab0d7613588064f665d0d; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< a64ab862e84e3e698cd351a87cdb504c7fc575ca; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< befb7f889594d23e1b475720cf93efd2f77df000; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 394b6d8bbdf9ddee6d5bcf3e1f3e9f23eecd6484; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 50ed48c80fecbe17218afed4f8bed005c802976c
- Anyone running Linux 4.10

## Description

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

s390/zcrypt: fix reference counting on zcrypt card objects

Tests with hot-plugging crytpo cards on KVM guests with debug
kernel build revealed an use after free for the load field of
the struct zcrypt\_card. The reason was an incorrect reference
handling of the zcrypt card object which could lead to a free
of the zcrypt card object while it was still in use.

This is an example of the slab message:

    kernel: 0x00000000885a7512-0x00000000885a7513 @offset=1298. First byte 0x68 instead of 0x6b
    kernel: Allocated in zcrypt\_card\_alloc+0x36/0x70 \[zcrypt\] age=18046 cpu=3 pid=43
    kernel:  kmalloc\_trace+0x3f2/0x470
    kernel:  zcrypt\_card\_alloc+0x36/0x70 \[zcrypt\]
    kernel:  zcrypt\_cex4\_card\_probe+0x26/0x380 \[zcrypt\_cex4\]
    kernel:  ap\_device\_probe+0x15c/0x290
    kernel:  really\_probe+0xd2/0x468
    kernel:  driver\_probe\_device+0x40/0xf0
    kernel:  \_\_device\_attach\_driver+0xc0/0x140
    kernel:  bus\_for\_each\_drv+0x8c/0xd0
    kernel:  \_\_device\_attach+0x114/0x198
    kernel:  bus\_probe\_device+0xb4/0xc8
    kernel:  device\_add+0x4d2/0x6e0
    kernel:  ap\_scan\_adapter+0x3d0/0x7c0
    kernel:  ap\_scan\_bus+0x5a/0x3b0
    kernel:  ap\_scan\_bus\_wq\_callback+0x40/0x60
    kernel:  process\_one\_work+0x26e/0x620
    kernel:  worker\_thread+0x21c/0x440
    kernel: Freed in zcrypt\_card\_put+0x54/0x80 \[zcrypt\] age=9024 cpu=3 pid=43
    kernel:  kfree+0x37e/0x418
    kernel:  zcrypt\_card\_put+0x54/0x80 \[zcrypt\]
    kernel:  ap\_device\_remove+0x4c/0xe0
    kernel:  device\_release\_driver\_internal+0x1c4/0x270
    kernel:  bus\_remove\_device+0x100/0x188
    kernel:  device\_del+0x164/0x3c0
    kernel:  device\_unregister+0x30/0x90
    kernel:  ap\_scan\_adapter+0xc8/0x7c0
    kernel:  ap\_scan\_bus+0x5a/0x3b0
    kernel:  ap\_scan\_bus\_wq\_callback+0x40/0x60
    kernel:  process\_one\_work+0x26e/0x620
    kernel:  worker\_thread+0x21c/0x440
    kernel:  kthread+0x150/0x168
    kernel:  \_\_ret\_from\_fork+0x3c/0x58
    kernel:  ret\_from\_fork+0xa/0x30
    kernel: Slab 0x00000372022169c0 objects=20 used=18 fp=0x00000000885a7c88 flags=0x3ffff00000000a00(workingset\|slab\|node=0\|zone=1\|lastcpupid=0x1ffff)
    kernel: Object 0x00000000885a74b8 @offset=1208 fp=0x00000000885a7c88
    kernel: Redzone  00000000885a74b0: bb bb bb bb bb bb bb bb                          ........
    kernel: Object   00000000885a74b8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74c8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74d8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74e8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74f8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a7508: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 68 4b 6b 6b 6b a5  kkkkkkkkkkhKkkk.
    kernel: Redzone  00000000885a7518: bb bb bb bb bb bb bb bb                          ........
    kernel: Padding  00000000885a756c: 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a              ZZZZZZZZZZZZ
    kernel: CPU: 0 PID: 387 Comm: systemd-udevd Not tainted 6.8.0-HF \#2
    kernel: Hardware name: IBM 3931 A01 704 (KVM/Linux)
    kernel: Call Trace:
    kernel:  \[\<00000000ca5ab5b8\>\] dump\_stack\_lvl+0x90/0x120
    kernel:  \[\<00000000c99d78bc\>\] check\_bytes\_and\_report+0x114/0x140
    kernel:  \[\<00000000c99d53cc\>\] check\_object+0x334/0x3f8
    kernel:  \[\<00000000c99d820c\>\] alloc\_debug\_processing+0xc4/0x1f8
    kernel:  \[\<00000000c99d852e\>\] get\_partial\_node.part.0+0x1ee/0x3e0
    kernel:  \[\<00000000c99d94ec\>\] \_\_\_slab\_alloc+0xaf4/0x13c8
    kernel:  \[\<00000000c99d9e38\>\] \_\_slab\_alloc.constprop.0+0x78/0xb8
    kernel:  \[\<00000000c99dc8dc\>\] \_\_kmalloc+0x434/0x590
    kernel:  \[\<00000000c9b4c0ce\>\] ext4\_htree\_store\_dirent+0x4e/0x1c0
    kernel:  \[\<00000000c9b908a2\>\] htree\_dirblock\_to\_tree+0x17a/0x3f0
    kernel: 
---truncated---

## Affected and fixed versions

- Linux: \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 7e500849fa558879a1cde43f80c7c048c2437058; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 9daddee03de3f231012014dab8ab2b277a116a55; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 6470078ab3d8f222115e11c4ec67351f3031b3dd; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< a55677878b93e9ebc31f66d0e2fb93be5e7836a6; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< b7f6c3630eb3f103115ab0d7613588064f665d0d; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< a64ab862e84e3e698cd351a87cdb504c7fc575ca; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< befb7f889594d23e1b475720cf93efd2f77df000; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 394b6d8bbdf9ddee6d5bcf3e1f3e9f23eecd6484; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 50ed48c80fecbe17218afed4f8bed005c802976c (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-26957.md
Affected: Linux >= e28d2af43614eb86f59812e7221735fc221bbc10, < 7e500849fa558879a1cde43f80c7c048c2437058; >= e28d2af43614eb86f59812e7221735fc221bbc10, < 9daddee03de3f231012014dab8ab2b277a116a55; >= e28d2af43614eb86f59812e7221735fc221bbc10, < 6470078ab3d8f222115e11c4ec67351f3031b3dd; >= e28d2af43614eb86f59812e…
Fixed in: Linux 7e500849fa558879a1cde43f80c7c048c2437058, Linux 9daddee03de3f231012014dab8ab2b277a116a55, Linux 6470078ab3d8f222115e11c4ec67351f3031b3dd, Linux 394b6d8bbdf9ddee6d5bcf3e1f3e9f23eecd6484, Linux 50ed48c80fecbe17218afed4f8bed005c802976c

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

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

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

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

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

Linux \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 7e500849fa558879a1cde43f80c7c048c2437058; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 9daddee03de3f231012014dab8ab2b277a116a55; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 6470078ab3d8f222115e11c4ec67351f3031b3dd; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< a55677878b93e9ebc31f66d0e2fb93be5e7836a6; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< b7f6c3630eb3f103115ab0d7613588064f665d0d; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< a64ab862e84e3e698cd351a87cdb504c7fc575ca; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< befb7f889594d23e1b475720cf93efd2f77df000; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 394b6d8bbdf9ddee6d5bcf3e1f3e9f23eecd6484; \>= e28d2af43614eb86f59812e7221735fc221bbc10, \< 50ed48c80fecbe17218afed4f8bed005c802976c; Linux 4.10.

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

Yes. Fixed in Linux 7e500849fa558879a1cde43f80c7c048c2437058, Linux 9daddee03de3f231012014dab8ab2b277a116a55, Linux 6470078ab3d8f222115e11c4ec67351f3031b3dd, Linux 394b6d8bbdf9ddee6d5bcf3e1f3e9f23eecd6484, Linux 50ed48c80fecbe17218afed4f8bed005c802976c. Upgrade Linux to 50ed48c80fecbe17218afed4f8bed005c802976c or later.

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

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/7e500849fa558879a1cde43f80c7c048c2437058>
- patch: <https://git.kernel.org/stable/c/9daddee03de3f231012014dab8ab2b277a116a55>
- patch: <https://git.kernel.org/stable/c/6470078ab3d8f222115e11c4ec67351f3031b3dd>
- patch: <https://git.kernel.org/stable/c/a55677878b93e9ebc31f66d0e2fb93be5e7836a6>
- patch: <https://git.kernel.org/stable/c/b7f6c3630eb3f103115ab0d7613588064f665d0d>
- patch: <https://git.kernel.org/stable/c/a64ab862e84e3e698cd351a87cdb504c7fc575ca>
- patch: <https://git.kernel.org/stable/c/befb7f889594d23e1b475720cf93efd2f77df000>
- patch: <https://git.kernel.org/stable/c/394b6d8bbdf9ddee6d5bcf3e1f3e9f23eecd6484>
- patch: <https://git.kernel.org/stable/c/50ed48c80fecbe17218afed4f8bed005c802976c>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.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-26957>

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