CVE-2024-50082 json
blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
published 2024-10-29 2 y ago modified 2026-10-15 24 d ago also EUVD-2024-44719
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
We're seeing crashes from rq_qos_wake_function that look like this:
BUG: unable to handle page fault for address: ffffafe180a40084 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 100000067 P4D 100000067 PUD 10027c067 PMD 10115d067 PTE 0 Oops: Oops: 0002 [#1] PREEMPT SMP PTI CPU: 17 UID: 0 PID: 0 Comm: swapper/17 Not tainted 6.12.0-rc3-00013-geca631b8fe80 #11 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014 RIP: 0010:_raw_spin_lock_irqsave+0x1d/0x40 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 41 54 9c 41 5c fa 65 ff 05 62 97 30 4c 31 c0 ba 01 00 00 00 <f0> 0f b1 17 75 0a 4c 89 e0 41 5c c3 cc cc cc cc 89 c6 e8 2c 0b 00 RSP: 0018:ffffafe180580ca0 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffffafe180a3f7a8 RCX: 0000000000000011 RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffafe180a40084 RBP: 0000000000000000 R08: 00000000001e7240 R09: 0000000000000011 R10: 0000000000000028 R11: 0000000000000888 R12: 0000000000000002 R13: ffffafe180a40084 R14: 0000000000000000 R15: 0000000000000003 FS: 0000000000000000(0000) GS:ffff9aaf1f280000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffafe180a40084 CR3: 000000010e428002 CR4: 0000000000770ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <IRQ> try_to_wake_up+0x5a/0x6a0 rq_qos_wake_function+0x71/0x80 __wake_up_common+0x75/0xa0 __wake_up+0x36/0x60 scale_up.part.0+0x50/0x110 wb_timer_fn+0x227/0x450 ...
So rq_qos_wake_function() calls wake_up_process(data->task), which calls try_to_wake_up(), which faults in raw_spin_lock_irqsave(&p->pi_lock).
p comes from data->task, and data comes from the waitqueue entry, which is stored on the waiter's stack in rq_qos_wait(). Analyzing the core dump with drgn, I found that the waiter had already woken up and moved on to a completely unrelated code path, clobbering what was previously data->task. Meanwhile, the waker was passing the clobbered garbage in data->task to wake_up_process(), leading to the crash.
What's happening is that in between rq_qos_wake_function() deleting the waitqueue entry and calling wake_up_process(), rq_qos_wait() is finding that it already got a token and returning. The race looks like this:
rq_qos_wait() rq_qos_wake_function() ============================================================== prepare_to_wait_exclusive() data->got_token = true; list_del_init(&curr->entry); if (data.got_token) break; finish_wait(&rqw->wait, &data.wq); ^- returns immediately because list_empty_careful(&wq_entry->entry) is true ... return, go do something else ... wake_up_process(data->task) (NO LONGER VALID!)-^
Normally, finish_wait() is supposed to synchronize against the waker. But, as noted above, it is returning immediately because the waitqueue entry has already been removed from the waitqueue.
The bug is that rq_qos_wake_function() is accessing the waitqueue entry AFTER deleting it. Note that autoremove_wake_function() wakes the waiter and THEN deletes the waitqueue entry, which is the proper order.
Fix it by swapping the order. We also need to use list_del_init_careful() to match the list_empty_careful() in finish_wait().
Patch / fix
- Linux Linux 5.4.285, 5.10.228, 5.15.169, 6.1.114, 6.6.58, 6.11.5, 6.12
- linux Debian 12 6.1.115-1
- linux Debian 14, Debian 13 6.11.5-1
debian advisories DEBIAN-CVE-2024-50082
- linux Ubuntu 20.04 LTS 5.4.0-208.228
- linux Ubuntu 22.04 LTS 5.15.0-133.144
- linux Ubuntu 24.04 LTS 6.8.0-56.58
- linux-aws Ubuntu 20.04 LTS 5.4.0-1140.150
- linux-aws Ubuntu 22.04 LTS 5.15.0-1078.85
- linux-aws Ubuntu 24.04 LTS 6.8.0-1025.27
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1143.152
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1077.86
ubuntu advisories UBUNTU-CVE-2024-50082
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9 5.14.0-570.12.1.el9_6
- rv RHEL 9 5.14.0-570.12.1.el9_6
- perf RHEL 9 5.14.0-570.12.1.el9_6
- rtla RHEL 9 5.14.0-570.12.1.el9_6
- libperf RHEL 9 5.14.0-570.12.1.el9_6
- kernel-rt RHEL 9 5.14.0-570.12.1.el9_6
- kernel-64k RHEL 9 5.14.0-570.12.1.el9_6
- kernel-core RHEL 9 5.14.0-570.12.1.el9_6
red hat advisories RHSA-2025:11810RHSA-2025:6966RHSA-2024:10943RHSA-2024:10944
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1.21.4
- kernel-livepatch-MICRO-6-0_Update_4 Linux Micro 6.1, Linux Micro 6.0 1-1.2
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-22.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-22.1
- kernel-livepatch-MICRO-6-0-RT_Update_4 Linux Micro 6.1, Linux Micro 6.0 1-1.1
suse advisories SUSE-SU-2025:20164-1SUSE-SU-2025:20247-1SUSE-SU-2025:20163-1SUSE-SU-2025:20246-1SUSE-SU-2024:4387-1SUSE-SU-2024:4376-1
- kernel-source-longterm openSUSE Tumbleweed 6.12.11-1.1
- kernel-source openSUSE Tumbleweed 6.11.8-1.1
opensuse advisories openSUSE-SU-2025:14705-1openSUSE-SU-2024:14500-1
- kernel AlmaLinux 8 4.18.0-553.32.1.el8_10
- perf AlmaLinux 8 4.18.0-553.32.1.el8_10
- bpftool AlmaLinux 8 4.18.0-553.32.1.el8_10
- kernel-core AlmaLinux 8 4.18.0-553.32.1.el8_10
- kernel-tools AlmaLinux 8 4.18.0-553.32.1.el8_10
- python3-perf AlmaLinux 8 4.18.0-553.32.1.el8_10
- kernel-modules AlmaLinux 8 4.18.0-553.32.1.el8_10
- kernel-zfcpdump AlmaLinux 8 4.18.0-553.32.1.el8_10
almalinux advisories ALSA-2024:10943ALSA-2024:10944
- kernel-rt Rocky Linux 8 4.18.0-553.32.1.rt7.373.el8_10
- kernel Rocky Linux 8 4.18.0-553.32.1.el8_10
rocky linux advisories RLSA-2024:10944RLSA-2024:10943
- kernel Azure Linux 3.0 6.6.64.2-1
- kernel CBL-Mariner 2.0 5.15.173.1-1
azure linux advisories AZL-51930AZL-51954
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/d04b72c9ef2b0689bfc1057d21c4aeed087c329f commit
- git.kernel.org/stable/c/3bc6d0f8b70a9101456cf02ab99acb75254e1852 commit
- git.kernel.org/stable/c/455a469758e57a6fe070e3e342db12e4a629e0eb commit
- git.kernel.org/stable/c/b5e900a3612b69423a0e1b0ab67841a1fb4af80f commit
- git.kernel.org/stable/c/4c5b123ab289767afe940389dbb963c5c05e594e commit
- git.kernel.org/stable/c/04f283fc16c8d5db641b6bffd2d8310aa7eccebc commit
- git.kernel.org/stable/c/e972b08b91ef48488bae9789f03cfedb148667fb commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-50082 updated cvss 4.1
kernel: blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
-
Red Hat CodeReady Linux Builder EUS (v.9.4) libperf 5.14.0-427.79.1.el9_4, kernel-debuginfo-common-s390x 5.14.0-427.79.1.el9_4, kernel-debuginfo-common-x86_64 5.14.0-427.79.1.el9_4, kernel-debuginfo-common-aarch64 5.14.0-427.79.1.el9_4, kernel-debuginfo-common-ppc64le 5.14.0-427.79.1.el9_4fixed: vendor fix RHSA-2025:11810
-
Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-570.12.1.el9_6, perf 5.14.0-570.12.1.el9_6, rtla 5.14.0-570.12.1.el9_6, python3-perf 5.14.0-570.12.1.el9_6, kernel-devel-matched 5.14.0-570.12.1.el9_6, kernel-64k-devel-matched 5.14.0-570.12.1.el9_6, +7 morefixed: vendor fix RHSA-2025:6966
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) rv 5.14.0-427.79.1.el9_4, perf 5.14.0-427.79.1.el9_4, rtla 5.14.0-427.79.1.el9_4, kernel-devel-matched 5.14.0-427.79.1.el9_4, kernel-64k-devel-matched 5.14.0-427.79.1.el9_4, kernel-debug-devel-matched 5.14.0-427.79.1.el9_4, +6 morefixed: vendor fix RHSA-2025:11810
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.32.1.el8_10, kernel 4.18.0-553.32.1.el8_10, bpftool 4.18.0-553.32.1.el8_10, kernel-core 4.18.0-553.32.1.el8_10, kernel-tools 4.18.0-553.32.1.el8_10, python3-perf 4.18.0-553.32.1.el8_10, +15 morefixed: vendor fix RHSA-2024:10943
-
Red Hat Enterprise Linux BaseOS (v. 9) kernel 5.14.0-570.12.1.el9_6, kernel-64k 5.14.0-570.12.1.el9_6, kernel-core 5.14.0-570.12.1.el9_6, kernel-tools 5.14.0-570.12.1.el9_6, kernel-modules 5.14.0-570.12.1.el9_6, kernel-64k-core 5.14.0-570.12.1.el9_6, +27 morefixed: vendor fix RHSA-2025:6966
-
Red Hat Enterprise Linux BaseOS EUS (v.9.4) bpftool 7.3.0-427.79.1.el9_4, kernel 5.14.0-427.79.1.el9_4, kernel-64k 5.14.0-427.79.1.el9_4, kernel-core 5.14.0-427.79.1.el9_4, kernel-tools 5.14.0-427.79.1.el9_4, python3-perf 5.14.0-427.79.1.el9_4, +28 morefixed: vendor fix RHSA-2025:11810
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) libperf 5.14.0-570.12.1.el9_6, kernel-debuginfo-common-s390x 5.14.0-570.12.1.el9_6, kernel-debuginfo-common-x86_64 5.14.0-570.12.1.el9_6, kernel-debuginfo-common-aarch64 5.14.0-570.12.1.el9_6, kernel-debuginfo-common-ppc64le 5.14.0-570.12.1.el9_6fixed: vendor fix RHSA-2025:6966
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.32.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.32.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.32.1.el8_10fixed: vendor fix RHSA-2024:10943
show 7 moreshow fewer
-
Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-kvm 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-core 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-modules 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-debug-kvm 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-debug-core 4.18.0-553.32.1.rt7.373.el8_10, +4 morefixed: vendor fix RHSA-2024:10944
-
Red Hat Enterprise Linux Real Time (v. 9) kernel-rt 5.14.0-570.12.1.el9_6, kernel-rt-64k 5.14.0-570.12.1.el9_6, kernel-rt-core 5.14.0-570.12.1.el9_6, kernel-rt-modules 5.14.0-570.12.1.el9_6, kernel-rt-64k-core 5.14.0-570.12.1.el9_6, kernel-rt-debug-core 5.14.0-570.12.1.el9_6, +14 morefixed: vendor fix RHSA-2025:6966
-
Red Hat Enterprise Linux Real Time EUS (v.9.4) kernel-rt 5.14.0-427.79.1.el9_4, kernel-rt-core 5.14.0-427.79.1.el9_4, kernel-rt-modules 5.14.0-427.79.1.el9_4, kernel-rt-debug-core 5.14.0-427.79.1.el9_4, kernel-rt-modules-core 5.14.0-427.79.1.el9_4, kernel-rt-debug-modules 5.14.0-427.79.1.el9_4, +4 morefixed: vendor fix RHSA-2025:11810
-
Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt 5.14.0-570.12.1.el9_6, kernel-rt-kvm 5.14.0-570.12.1.el9_6, kernel-rt-core 5.14.0-570.12.1.el9_6, kernel-rt-modules 5.14.0-570.12.1.el9_6, kernel-rt-debug-kvm 5.14.0-570.12.1.el9_6, kernel-rt-debug-core 5.14.0-570.12.1.el9_6, +6 morefixed: vendor fix RHSA-2025:6966
-
Red Hat Enterprise Linux Real Time for NFV EUS (v.9.4) kernel-rt 5.14.0-427.79.1.el9_4, kernel-rt-kvm 5.14.0-427.79.1.el9_4, kernel-rt-core 5.14.0-427.79.1.el9_4, kernel-rt-modules 5.14.0-427.79.1.el9_4, kernel-rt-debug-kvm 5.14.0-427.79.1.el9_4, kernel-rt-debug-core 5.14.0-427.79.1.el9_4, +6 morefixed: vendor fix RHSA-2025:11810
-
Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-core 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-modules 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-debug-core 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-debug-modules 4.18.0-553.32.1.rt7.373.el8_10, kernel-rt-modules-extra 4.18.0-553.32.1.rt7.373.el8_10, +2 morefixed: vendor fix RHSA-2024:10944
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-226-07 updated cvss 5.5
Siemens Third-Party Components in SINEC OS
-
Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) < 3.2affected: fixed in V3.2 support.industry.siemens.com
-
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < 3.2affected: fixed in V3.2
-
Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < 3.2affected: fixed in V3.2 support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 24 d ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/d04b72c9ef2b0689bfc1057d21c4aeed087c329f
-
git.kernel.org
/stable/c/3bc6d0f8b70a9101456cf02ab99acb75254e1852
patch
-
git.kernel.org
/stable/c/455a469758e57a6fe070e3e342db12e4a629e0eb
patch
-
git.kernel.org
/stable/c/b5e900a3612b69423a0e1b0ab67841a1fb4af80f
patch
-
git.kernel.org
/stable/c/4c5b123ab289767afe940389dbb963c5c05e594e
patch
-
git.kernel.org
/stable/c/04f283fc16c8d5db641b6bffd2d8310aa7eccebc
patch
-
git.kernel.org
/stable/c/e972b08b91ef48488bae9789f03cfedb148667fb
patch
- lists.debian.org /debian-lts-announce/2025/03/msg00002.html
- lists.debian.org /debian-lts-announce/2025/01/msg00001.html
Sources
- CVE List CVE-2024-50082
- NVD CVE-2024-50082
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.