CVE-2022-49870

HIGH

Linux Kernel < 4.9.334 - Out-of-Bounds Read

Title source: rule
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: capabilities: fix undefined behavior in bit shift for CAP_TO_MASK Shifting signed 32-bit value by 31 bits is undefined, so changing significant bit to unsigned. The UBSAN warning calltrace like below: UBSAN: shift-out-of-bounds in security/commoncap.c:1252:2 left shift of 1 by 31 places cannot be represented in type 'int' Call Trace: <TASK> dump_stack_lvl+0x7d/0xa5 dump_stack+0x15/0x1b ubsan_epilogue+0xe/0x4e __ubsan_handle_shift_out_of_bounds+0x1e7/0x20c cap_task_prctl+0x561/0x6f0 security_task_prctl+0x5a/0xb0 __x64_sys_prctl+0x61/0x8f0 do_syscall_64+0x58/0x80 entry_SYSCALL_64_after_hwframe+0x63/0xcd </TASK>

Scores

CVSS v3 7.1
EPSS 0.0005
EPSS Percentile 15.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Details

CWE
CWE-125
Status published
Products (9)
linux/Kernel 2.6.25 - 4.9.334linux
linux/Kernel 4.10.0 - 4.14.300linux
linux/Kernel 4.15.0 - 4.19.267linux
linux/Kernel 4.20.0 - 5.4.225linux
linux/Kernel 5.11.0 - 5.15.79linux
linux/Kernel 5.16.0 - 6.0.9linux
linux/Kernel 5.5.0 - 5.10.155linux
linux/linux_kernel 6.1 rc1 (4 CPE variants)
linux/linux_kernel 2.6.25 - 4.9.334
Published May 01, 2025
Tracked Since Feb 18, 2026