Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47069

published high CVSS 3.1 · 7.8

ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry

Published
01 Mar 2024, 21:15:08 UTC
Updated
05 Aug 2026, 08:45:50 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc5b2cbdbdac563f46ecd5e187253ab1abbd6fc04 to < 4528c0c323085e645b8765913b4a7fd42cf49b65 · c5b2cbdbdac563f46ecd5e187253ab1abbd6fc04 to < 807fa14536b26803b858da878b643be72952a097 · c5b2cbdbdac563f46ecd5e187253ab1abbd6fc04 to < a11ddb37bf367e6b5239b95ca759e5389bb46048 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.6 (affected) · 0 to < 5.6 (unaffected · semver) · 5.10.40 through 5.10.* (unaffected · semver) · 5.12.7 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2022-002 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.8.1.rt7.349.el8_10 ALSA-2024:4352
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 perf Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.8.1.el8_10 ALSA-2024:4211
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-cross-headersaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-headersaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-toolsaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-tools-libsaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-tools-libs-develaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 perfaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 perfx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 python3-perfaarch64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Oracle Linux 8 python3-perfx86_64 Advisory build 0:4.18.0-553.8.1.el8_10 ELSA-2024-4211
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-553.8.1.el8_10 RHSA-2024:4211
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-372.119.1.el8_6 RHSA-2024:5692
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-477.70.1.el8_8 RHSA-2024:6206

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry do_mq_timedreceive calls wq_sleep with a stack local address. The sender (do_mq_timedsend) uses this address to later call pipelined_send. This leads to a very hard to trigger race where a do_mq_timedreceive call might return and leave do_mq_timedsend to rely on an invalid address, causing the following crash: RIP: 0010:wake_q_add_safe+0x13/0x60 Call Trace: __x64_sys_mq_timedsend+0x2a9/0x490 do_syscall_64+0x80/0x680 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f5928e40343 The race occurs as: 1. do_mq_timedreceive calls wq_sleep with the address of `struct ext_wait_queue` on function stack (aliased as `ewq_addr` here) - it holds a valid `struct ext_wait_queue *` as long as the stack has not been overwritten. 2. `ewq_addr` gets added to info->e_wait_q[RECV].list in wq_add, and do_mq_timedsend receives it via wq_get_first_waiter(info, RECV) to call __pipelined_op. 3. Sender calls __pipelined_op::smp_store_release(&this->state, STATE_READY). Here is where the race window begins. (`this` is `ewq_addr`.) 4. If the receiver wakes up now in do_mq_timedreceive::wq_sleep, it will see `state == STATE_READY` and break. 5. do_mq_timedreceive returns, and `ewq_addr` is no longer guaranteed to be a `struct ext_wait_queue *` since it was on do_mq_timedreceive's stack. (Although the address may not get overwritten until another function happens to touch it, which means it can persist around for an indefinite time.) 6. do_mq_timedsend::__pipelined_op() still believes `ewq_addr` is a `struct ext_wait_queue *`, and uses it to find a task_struct to pass to the wake_q_add_safe call. In the lucky case where nothing has overwritten `ewq_addr` yet, `ewq_addr->task` is the right task_struct. In the unlucky case, __pipelined_op::wake_q_add_safe gets handed a bogus address as the receiver's task_struct causing the crash. do_mq_timedsend::__pipelined_op() should not dereference `this` after setting STATE_READY, as the receiver counterpart is now free to return. Change __pipelined_op to call wake_q_add_safe on the receiver's task_struct returned by get_task_struct, instead of dereferencing `this` which sits on the receiver's stack. As Manfred pointed out, the race potentially also exists in ipc/msg.c::expunge_all and ipc/sem.c::wake_up_sem_queue_prepare. Fix those in the same way.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

21

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is triggered through local IPC syscalls (mq_timedsend/mq_timedreceive, msgsnd/msgrcv/msgctl, semop/semctl) and is not reachable by processing remote or adjacent-link network traffic. AC:L - The attacker fully controls both sides of the race by running concurrent sender and receiver (or RMID) operations on their own message queue or semaphore set, so success does not depend on an external condition outside their influence. PR:L - An unprivileged local user can mq_open/msgget/semget their own objects and exercise send/receive/RMID paths; CAP_SYS_RESOURCE is only needed to exceed resource limits, not to hit the vulnerable code. UI:N - The attacker performs the concurrent IPC operations themselves and does not need any separate victim or administrator action. S:U - This is a standard in-kernel stack use-after-free within the host OS authority and does not cross a VM, IOMMU, or other security boundary. C:H - The dangling stack pointer is reloaded into wake_q_add_safe as a task_struct *, and this stack UAF can be leveraged via stack reuse/heap primitives for arbitrary kernel memory disclosure under UAF scoring guidance. I:H - wake_q_add_safe/__wake_q_add perform cmpxchg and list writes through the attacker-influenced task pointer and may put_task_struct/wake_up_process on a bogus object, yielding write and control-flow hijack primitives. A:H - The issue was observed to crash in wake_q_add_safe with a bogus task_struct pointer, so kernel oops/panic availability impact is High even without a full exploit.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux c5b2cbdbdac563f46ecd5e187253ab1abbd6fc04 to < 4528c0c323085e645b8765913b4a7fd42cf49b65 (affected · git)c5b2cbdbdac563f46ecd5e187253ab1abbd6fc04 to < 807fa14536b26803b858da878b643be72952a097 (affected · git)c5b2cbdbdac563f46ecd5e187253ab1abbd6fc04 to < a11ddb37bf367e6b5239b95ca759e5389bb46048 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.6 (affected)0 to < 5.6 (unaffected · semver)5.10.40 through 5.10.* (unaffected · semver)5.12.7 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

3

Linux · cna

ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
445399560e17e53ae26c3935d4039a38a66a2a4cdcda83590610c83c021f4173
Ingested
23 Sep 2026, 07:57:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected