cve.bz

CVE-2024-57849 linux linux kernel: Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: s390/cpum_sf: Handle CPU hotplug remove during sampling CPU hotplug remove handling triggers the following function call sequence: CPUHP_AP_PERF_S390_SF_ONLINE --> s390_pmu_sf_offline_cpu() ... CPUHP_AP_PERF_ONLINE --> perf_event_exit_cpu() The s390 CPUMF sampling CPU hotplug handler invokes: s390_pmu_sf_offline_cpu() +--> cpusf_pmu_setup() +--> setup_pmc_cpu() +--> deallocate_buffers() This function de-allocates all sampling data buffers (SDBs) allocated for that CPU at event initialization. It also clears the PMU_F_RESERVED bit. The CPU is gone and can not be sampled. With the event still being active on the removed CPU, the CPU event hotplug support in kernel performance subsystem triggers the following function calls on the removed CPU: perf_event_exit_cpu() +--> perf_event_exit_cpu_context() +--> __perf_event_exit_context() +--> __perf_remove_from_context() +--> event_sched_out() +--> cpumsf_pmu_del() +--> cpumsf_pmu_stop() +--> hw_perf_event_update() to stop and remove the event. During removal of the event, the sampling device driver tries to read out the remaining samples from the sample data buffers (SDBs). But they have already been freed (and may have been re-assigned). This may lead to a use after free situation in which case the samples are most likely invalid. In the best case the memory has not been reassigned and still contains valid data. Remedy this situation and check if the CPU is still in reserved state (bit PMU_F_RESERVED set). In this case the SDBs have not been released an contain valid data. This is always the case when the event is removed (and no CPU hotplug off occured). If the PMU_F_RESERVED bit is not set, the SDB buffers are gone.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-57849 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-57849?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-57849?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-57849 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2024-57849

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2024-57849](https://cve.bz/cve/badge/CVE-2024-57849.svg)](https://cve.bz/cve/CVE-2024-57849)

HTML:

<a href="https://cve.bz/cve/CVE-2024-57849"><img src="https://cve.bz/cve/badge/CVE-2024-57849.svg" alt="CVE-2024-57849"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.8 and later

Fixed in

ProductRelease lineFixed in
Linux5.45.4.287
Linux5.105.10.231
Linux5.155.15.174
Linux6.16.1.120
Linux6.66.6.66
Linux6.126.12.5
Linuxlater releases6.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.128-1~deb11u1DLA-4076-1
Debian12linux6.1.123-1DEBIAN-CVE-2024-57849
Debian13, 14linux6.12.5-1DEBIAN-CVE-2024-57849
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-57849
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-57849
Ubuntu20.04:LTSlinux5.4.0-211.231UBUNTU-CVE-2024-57849 USN-7391-1
Ubuntu20.04:LTSlinux-aws5.4.0-1142.152UBUNTU-CVE-2024-57849 USN-7392-3
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1080.87~20.04.1UBUNTU-CVE-2024-57849 USN-7388-1
Ubuntu20.04:LTSlinux-azure5.4.0-1147.154UBUNTU-CVE-2024-57849 USN-7392-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1086.95~20.04.1UBUNTU-CVE-2024-57849 USN-7421-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1086.95~20.04.1.1USN-7421-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1101.108UBUNTU-CVE-2024-57849 USN-7392-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1145.154UBUNTU-CVE-2024-57849 USN-7392-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1081.90~20.04.1UBUNTU-CVE-2024-57849 USN-7459-2
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2024-57849
99 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.159.1.el8_10RHSA-2026:63014
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.159.1.el8_10RHSA-2026:63014
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.159.1.rt7.500.el8_10RHSA-2026:63013
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.159.1.rt7.500.el8_10RHSA-2026:63013
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.195.1SUSE-SU-2025:0771-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.195.1.150300.18.116.1SUSE-SU-2025:0771-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.195.1SUSE-SU-2025:0771-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.150.1SUSE-SU-2025:0576-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.38.1SUSE-SU-2025:0499-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.150.1SUSE-SU-2025:0576-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.150.1.150400.24.74.1SUSE-SU-2025:0576-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.94.1SUSE-SU-2025:0577-1 SUSE-SU-2025:0577-2
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.94.1.150500.6.43.1SUSE-SU-2025:0577-1 SUSE-SU-2025:0577-2
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.244.1SUSE-SU-2025:0236-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_6316-2.1SUSE-SU-2026:0154-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_641-8.5.1SUSE-SU-2025:0236-1
42 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.38.1SUSE-SU-2025:0499-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.26.1SUSE-SU-2025:0428-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.38.1.150600.12.16.2SUSE-SU-2025:0499-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.26.1SUSE-SU-2025:0557-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.159.1.rt7.500.el8_10ALSA-2026:63013
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.159.1.el8_10ALSA-2026:63014
Rocky Linux8kernel0:4.18.0-553.159.1.el8_10RLSA-2026:63014
Rocky Linux8kernel-rt0:4.18.0-553.159.1.rt7.500.el8_10RLSA-2026:63013
Alpaquita23linux-lts6.1.120-r0BELL-CVE-2024-57849
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2024-57849
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2024-57849

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is marked as Moderate rather than Important because its impact is limited to a specific scenario involving CPU hotplug operations on the `s390` architecture with active performance events. While the issue can lead to a use-after-free condition, the scope of exploitation is constrained since it requires precise timing to interact with deallocated sampling data buffers (SDBs) during event cleanup. Moreover, the invalid memory access primarily affects performance monitoring functionality and does not directly compromise critical system processes or user data.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.159.1.rt7.500.el8_10Fixed 2026-09-03RHSA-2026:63013
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.159.1.el8_10Fixed 2026-09-03RHSA-2026:63014
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernelWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-57849.

References

Check your stackJSON