VDB

CVE-2024-57849

CVE-2024-57849 PUBLISHED CVSS 7.8 HIGH

s390/cpum_sf: Handle CPU hotplug remove during sampling

Reported by linux · Published January 11, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
perf-debuginfoerrata.rockylinux.org4.18.0-553.159.1.el8
bpftoolerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-debug-moduleserrata.rockylinux.org4.18.0-553.159.1.el8
kernel-coreerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-debug-coreerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-tools-libs-develerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-abi-stablelistserrata.rockylinux.org4.18.0-553.159.1.el8
kernel-rterrata.rockylinux.org4.18.0-553.159.1.rt7.500.el8
kernel-toolserrata.rockylinux.org4.18.0-553.159.1.el8
kernel-debug-debuginfoerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-debuginfoerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-rt-moduleserrata.rockylinux.org4.18.0-553.159.1.rt7.500.el8

19 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxe3d617fe6ac7294974fc513dc5e4d8ada8080fd1, e3d617fe6ac7294974fc513dc5e4d8ada8080fd1, e3d617fe6ac7294974fc513dc5e4d8ada8080fd1
LinuxLinux4.8, 0, 5.4.287
linuxlinux_kernel4.8, 4.8, 4.8
LinuxLinux*, *, *

Timeline

  • Jan 11, 2025 CVE Published
  • Jan 12, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 2, 2025 Coalition ESS Score (10 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 29, 2025 Security Advisory (148 in total, the first dated here)
  • Dec 29, 2025 CVE Updated
  • Apr 29, 2026 Distribution Patch (134 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-57849
vulnetix vdb fixes CVE-2024-57849

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-57849/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›