Read the docs
TI-2024-33742 Aliases CVE-2024-50301GHSA-7h56-8w9m-w78x

security/keys: fix slab-out-of-bounds in key_task_permission

Priority LOW 34CWE-125Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 9 fixed, 2 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.

Summary

In the Linux kernel, the following vulnerability has been resolved: security/keys: fix slab-out-of-bounds in key_task_permission KASAN reports an out of bounds read: BUG: KASAN: slab-out-of-bounds in __kuid_val include/linux/uidgid.h:36 BUG: KASAN: slab-out-of-bounds in uid_eq include/linux/uidgid.h:63 [inline] BUG: KASAN: slab-out-of-bounds in key_task_permission+0x394/0x410 security/keys/permission.c:54 Read of size 4 at addr ffff88813c3ab618 by task stress-ng/4362 CPU: 2 PID: 4362 Comm: stress-ng Not tainted 5.10.0-14930-gafbffd6c3ede #15 Call Trace: __dump_stack lib/dump_stack.c:82 [inline] dump_stack+0x107/0x167 lib/dump_stack.c:123 print_address_description.constprop.0+0x19/0x170 mm/kasan/report.c:400 __kasan_report.cold+0x6c/0x84 mm/kasan/report.c:560 kasan_report+0x3a/0x50 mm/kasan/report.c:585 __kuid_val include/linux/uidgid.h:36 [inline] uid_eq include/linux/uidgid.h:63 [inline] key_task_permission+0x394/0x410 security/keys/permission.c:54 search_nested_keyrings+0x90e/0xe90 security/keys/keyring.c:793 This issue was also reported by syzbot. It can be reproduced by following these steps(more details [1]): 1. Obtain more than 32 inputs that have similar hashes, which ends with the pattern '0xxxxxxxe6'. 2. Reboot and add the keys obtained in step 1. The reproducer demonstrates how this issue happened: 1. In the search_nested_keyrings function, when it iterates through the slots in a node(below tag ascend_to_node), if the slot pointer is meta and node->back_pointer != NULL(it means a root), it will proceed to descend_to_node. However, there is an exception. If node is the root, and one of the slots points to a shortcut, it will be treated as a keyring. 2. Whether the ptr is keyring decided by keyring_ptr_is_keyring function. However, KEYRING_PTR_SUBTYPE is 0x2UL, the same as ASSOC_ARRAY_PTR_SUBTYPE_MASK. 3. When 32 keys with the similar hashes are added to the tree, the ROOT has keys with hashes that are not similar (e.g. slot 0) and it splits NODE A without using a shortcut. When NODE A is filled with keys that all hashes are xxe6, the keys are similar, NODE A will split with a shortcut. Finally, it forms the tree as shown below, where slot 6 points to a shortcut. NODE A +------>+---+ ROOT | | 0 | xxe6 +---+ | +---+ xxxx | 0 | shortcut : : xxe6 +---+ | +---+ xxe6 : : | | | xxe6 +---+ | +---+ | 6 |---+ : : xxe6 +---+ +---+ xxe6 : : | f | xxe6 +---+ +---+ xxe6 | f | +---+ 4. As mentioned above, If a slot(slot 6) of the root points to a shortcut, it may be mistakenly transferred to a key*, leading to a read out-of-bounds read. To fix this issue, one should jump to descend_to_node if the ptr is a shortcut, regardless of whether the node is root or not. [1] https://lore.kernel.org/linux-kernel/[email protected]/ [jarkko: tweaked the commit message a bit to have an appropriate closes tag.]

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00283 20th percentileScored 2026-11-07
Fix Partial Linux (Linux): 4.19.324, 5.4.286, 5.10.230 +5Red Hat: 3 advisoriesRed Hat: 9 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux3.13 and later4.19.324, 5.4.286, 5.10.230, 5.15.172, 6.1.117, 6.6.61, 6.11.8, 6.12Patch availableCNA
  • Linux VendorLinux Affected 3.13 and later Fixed in 4.19.324, 5.4.286, 5.10.230, 5.15.172, 6.1.117, 6.6.61, 6.11.8, 6.12 Patch available CNA

CPE configurations NVD · 7

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*3.13 to before 4.19.324; 4.20 to before 5.4.286; 5.5 to before 5.10.230; 5.11 to before 5.15.172; 5.16 to before 6.1.117; 6.2 to before 6.6.61; 6.7 to before 6.11.8VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*6.12 rc1VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*6.12 rc2VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*6.12 rc3VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*6.12 rc4VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:*6.12 rc5VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.12:rc6:*:*:*:*:*:*6.12 rc6VulnerableLinux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 3.13 to before 4.19.324; 4.20 to before 5.4.286; 5.5 to before 5.10.230; 5.11 to before 5.15.172; 5.16 to before 6.1.117; 6.2 to before 6.6.61; 6.7 to before 6.11.8 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* Versions 6.12 rc1 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* Versions 6.12 rc2 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* Versions 6.12 rc3 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:* Versions 6.12 rc4 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:* Versions 6.12 rc5 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.12:rc6:*:*:*:*:*:* Versions 6.12 rc6 Vulnerable ·Linux

Remediation

  • Fix · CNA Linux (Linux) Fixed in 4.19.324, 5.4.286, 5.10.230, 5.15.172, 6.1.117, 6.6.61, 6.11.8, 6.12

Red Hat 3 advisories

  • RHSA-2025:17377 Released 2025-10-06 · Red Hat rating Moderate
    kernel security update
    • Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-570.51.1.el9_6, kernel-64k-debug-devel-matched-5.14.0-570.51.1.el9_6, kernel-64k-devel-5.14.0-570.51.1.el9_6 +12
    • Red Hat Enterprise Linux BaseOS (v. 9) kernel-5.14.0-570.51.1.el9_6, kernel-64k-5.14.0-570.51.1.el9_6, kernel-64k-core-5.14.0-570.51.1.el9_6 +28
    • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) kernel-tools-libs-devel-5.14.0-570.51.1.el9_6, libperf-5.14.0-570.51.1.el9_6
    • Red Hat Enterprise Linux Real Time (v. 9) kernel-rt-5.14.0-570.51.1.el9_6, kernel-rt-64k-5.14.0-570.51.1.el9_6, kernel-rt-64k-core-5.14.0-570.51.1.el9_6 +21
    • Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt-5.14.0-570.51.1.el9_6, kernel-rt-core-5.14.0-570.51.1.el9_6, kernel-rt-debug-5.14.0-570.51.1.el9_6 +11
  • RHSA-2025:9580 Released 2025-06-25 · Red Hat rating Moderate
    kernel security update
    • Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.58.1.el8_10, kernel-4.18.0-553.58.1.el8_10, kernel-abi-stablelists-4.18.0-553.58.1.el8_10 +19
    • Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.58.1.el8_10
  • RHSA-2025:9581 Released 2025-06-25 · Red Hat rating Moderate
    kernel-rt security update
    • Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-core-4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-debug-4.18.0-553.58.1.rt7.399.el8_10 +9
    • Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-core-4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-debug-4.18.0-553.58.1.rt7.399.el8_10 +7

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2025:17377
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2025:9580
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2025:17377
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2025:9580
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)Fixed RHSA-2025:17377
Red Hat Enterprise Linux NFV (v. 8)Fixed RHSA-2025:9581
Red Hat Enterprise Linux RT (v. 8)Fixed RHSA-2025:9581
Red Hat Enterprise Linux Real Time (v. 9)Fixed RHSA-2025:17377
Red Hat Enterprise Linux Real Time for NFV (v. 9)Fixed RHSA-2025:17377

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-50301
  2. 2026-10-03 Alias added: GHSA-7h56-8w9m-w78x
  3. 2026-10-29 Affected versions changed · Red Hat

References

  • TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
  • TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
See all 15278 →

Sources