CVE-2022-50511Incorrect Bitwise Shift of Integer in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 97.11%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 7

Description

In the Linux kernel, the following vulnerability has been resolved: lib/fonts: fix undefined behavior in bit shift for get_default_font 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 lib/fonts/fonts.c:139:20 left shift of 1 by 31 places cannot be represented in type 'int' dump_stack_lvl+0x7d/0xa5 dump_stack+0x15/0x1b ubsan_epilogue+0xe/0x4e __ubsan_handle_shift_out_of_bounds+

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel2.6.23.15.4.229+5
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linuxc81f717cb9e0bd91dc4b98753cb2705ab0fe2801e039929e36818507e90901edae87f6fa8bc81093+6
debiandebian/linux< linux 6.1.4-1 (bookworm)

Patches

🔴Vulnerability Details

2
OSV
CVE-2022-50511: In the Linux kernel, the following vulnerability has been resolved: lib/fonts: fix undefined behavior in bit shift for get_default_font Shifting signe2025-10-07
GHSA
GHSA-72cp-v89q-9p3w: In the Linux kernel, the following vulnerability has been resolved: lib/fonts: fix undefined behavior in bit shift for get_default_font Shifting sig2025-10-07

📋Vendor Advisories

2
Red Hat
kernel: lib/fonts: fix undefined behavior in bit shift for get_default_font2025-10-07
Debian
CVE-2022-50511: linux - In the Linux kernel, the following vulnerability has been resolved: lib/fonts: ...2022