PT-2025-18587
CVE-2022-49870
·
Published
2022-11-05
·
Updated
2026-07-28
Description by
CVSS 3.1
7.1
HighMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue concerns undefined behavior in bit shift for CAP TO MASK in the Linux kernel. Specifically, shifting a signed 32-bit value by 31 bits is undefined. To address this, the significant bit is changed to unsigned. This change resolves a UBSAN warning related to shift-out-of-bounds in security/commoncap.c. The warning is triggered by a left shift of 1 by 31 places that cannot be represented in type 'int'. The call trace includes functions such as
cap task prctl and security task prctl, indicating the vulnerability's location in the kernel's capability and security modules.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Found an issue in the description? Have something to add? Feel free to write us 👾