# CVE-2024-57838: s390/entry: Mark IRQ entries to fix stack depot warnings

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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-29)
- **CWE:** CWE-668
- **Published:** 2025-01-11T14:08:56.951Z
- **Modified:** 2026-11-05T21:17:38.073Z

## Who should check

- Anyone running Linux \>= e940066089490efde86abc519593be84362f4e53, \< 5bb7a2c3afcf8732dc65ea49c09147b07da1d993; \>= e940066089490efde86abc519593be84362f4e53, \< 1af22528fee8072b7adc007b8ca49cc4ea62689e; \>= e940066089490efde86abc519593be84362f4e53, \< 473ffae3030188f1c6b80e1b3631a26b4adf7b32; \>= e940066089490efde86abc519593be84362f4e53, \< 45c9f2b856a075a34873d00788d2e8a250c1effd
- Anyone running Linux 5.17

## Description

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

s390/entry: Mark IRQ entries to fix stack depot warnings

The stack depot filters out everything outside of the top interrupt
context as an uninteresting or irrelevant part of the stack traces. This
helps with stack trace de-duplication, avoiding an explosion of saved
stack traces that share the same IRQ context code path but originate
from different randomly interrupted points, eventually exhausting the
stack depot.

Filtering uses in\_irqentry\_text() to identify functions within the
.irqentry.text and .softirqentry.text sections, which then become the
last stack trace entries being saved.

While \_\_do\_softirq() is placed into the .softirqentry.text section by
common code, populating .irqentry.text is architecture-specific.

Currently, the .irqentry.text section on s390 is empty, which prevents
stack depot filtering and de-duplication and could result in warnings
like:

Stack depot reached limit capacity
WARNING: CPU: 0 PID: 286113 at lib/stackdepot.c:252 depot\_alloc\_stack+0x39a/0x3c8

with PREEMPT and KASAN enabled.

Fix this by moving the IO/EXT interrupt handlers from .kprobes.text into
the .irqentry.text section and updating the kprobes blacklist to include
the .irqentry.text section.

This is done only for asynchronous interrupts and explicitly not for
program checks, which are synchronous and where the context beyond the
program check is important to preserve. Despite machine checks being
somewhat in between, they are extremely rare, and preserving context
when possible is also of value.

SVCs and Restart Interrupts are not relevant, one being always at the
boundary to user space and the other being a one-time thing.

IRQ entries filtering is also optionally used in ftrace function graph,
where the same logic applies.

## Affected and fixed versions

- Linux: \>= e940066089490efde86abc519593be84362f4e53, \< 5bb7a2c3afcf8732dc65ea49c09147b07da1d993; \>= e940066089490efde86abc519593be84362f4e53, \< 1af22528fee8072b7adc007b8ca49cc4ea62689e; \>= e940066089490efde86abc519593be84362f4e53, \< 473ffae3030188f1c6b80e1b3631a26b4adf7b32; \>= e940066089490efde86abc519593be84362f4e53, \< 45c9f2b856a075a34873d00788d2e8a250c1effd (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-57838.md
Affected: Linux >= e940066089490efde86abc519593be84362f4e53, < 5bb7a2c3afcf8732dc65ea49c09147b07da1d993; >= e940066089490efde86abc519593be84362f4e53, < 1af22528fee8072b7adc007b8ca49cc4ea62689e; >= e940066089490efde86abc519593be84362f4e53, < 473ffae3030188f1c6b80e1b3631a26b4adf7b32; >= e940066089490efde86abc5…
Fixed in: Linux 5bb7a2c3afcf8732dc65ea49c09147b07da1d993, Linux 1af22528fee8072b7adc007b8ca49cc4ea62689e, Linux 473ffae3030188f1c6b80e1b3631a26b4adf7b32, Linux 45c9f2b856a075a34873d00788d2e8a250c1effd

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

There is no confirmed exploitation: CVE-2024-57838 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-29).

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

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

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

Linux \>= e940066089490efde86abc519593be84362f4e53, \< 5bb7a2c3afcf8732dc65ea49c09147b07da1d993; \>= e940066089490efde86abc519593be84362f4e53, \< 1af22528fee8072b7adc007b8ca49cc4ea62689e; \>= e940066089490efde86abc519593be84362f4e53, \< 473ffae3030188f1c6b80e1b3631a26b4adf7b32; \>= e940066089490efde86abc519593be84362f4e53, \< 45c9f2b856a075a34873d00788d2e8a250c1effd; Linux 5.17.

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

Yes. Fixed in Linux 5bb7a2c3afcf8732dc65ea49c09147b07da1d993, Linux 1af22528fee8072b7adc007b8ca49cc4ea62689e, Linux 473ffae3030188f1c6b80e1b3631a26b4adf7b32, Linux 45c9f2b856a075a34873d00788d2e8a250c1effd. Upgrade Linux to 45c9f2b856a075a34873d00788d2e8a250c1effd or later.

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

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/5bb7a2c3afcf8732dc65ea49c09147b07da1d993>
- patch: <https://git.kernel.org/stable/c/1af22528fee8072b7adc007b8ca49cc4ea62689e>
- patch: <https://git.kernel.org/stable/c/473ffae3030188f1c6b80e1b3631a26b4adf7b32>
- patch: <https://git.kernel.org/stable/c/45c9f2b856a075a34873d00788d2e8a250c1effd>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.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-57838>

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