Buffer overflow in Linux kernel - CVE-2022-50341

 

Buffer overflow in Linux kernel - CVE-2022-50341

Published: September 17, 2025 / Updated: September 22, 2025


Vulnerability identifier: #VU115702
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-50341
CWE-ID: CWE-119
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to memory corruption within the fill_transform_hdr() and crypt_message() functions in fs/cifs/smb2ops.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
kernel (Red Hat package)
kernel-rt (Red Hat package)
perf-debuginfo
python3-perf-debuginfo
python3-perf
python2-perf-debuginfo
python2-perf
kernel
perf
kernel-tools-devel
kernel-tools-debuginfo
kernel-tools
kernel-source
kernel-devel
kernel-debugsource
kernel-debuginfo
bpftool-debuginfo
bpftool

How to mitigate CVE-2022-50341

Install update from vendor's repository.

Linux kernel - update to 5.10.163
kernel (Red Hat package) - addressed in versions 3.10.0-1160.143.1.el7, 4.18.0-193.185.1.el8_2, 4.18.0-372.170.1.el8_6, 4.18.0-477.120.1.el8_8, 5.14.0-70.155.1.el9_0
kernel-rt (Red Hat package) - addressed in versions 3.10.0-1160.143.1.rt56.1295.el7, 5.14.0-70.155.1.rt21.227.el9_0
perf-debuginfo - update to 4.19.90-2510.3.0.0348
python3-perf-debuginfo - update to 4.19.90-2510.3.0.0348
python3-perf - update to 4.19.90-2510.3.0.0348
python2-perf-debuginfo - update to 4.19.90-2510.3.0.0348
python2-perf - update to 4.19.90-2510.3.0.0348
kernel - update to 4.19.90-2510.3.0.0348
perf - update to 4.19.90-2510.3.0.0348
kernel-tools-devel - update to 4.19.90-2510.3.0.0348
kernel-tools-debuginfo - update to 4.19.90-2510.3.0.0348
kernel-tools - update to 4.19.90-2510.3.0.0348
kernel-source - update to 4.19.90-2510.3.0.0348
kernel-devel - update to 4.19.90-2510.3.0.0348
kernel-debugsource - update to 4.19.90-2510.3.0.0348
kernel-debuginfo - update to 4.19.90-2510.3.0.0348
bpftool-debuginfo - update to 4.19.90-2510.3.0.0348
bpftool - update to 4.19.90-2510.3.0.0348

External References

Related Security Bulletins