CVE-2022-50301Out-of-bounds Write in Linux

Severity
7.8HIGHNVD
EPSS
0.0%
top 96.12%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 15

Description

In the Linux kernel, the following vulnerability has been resolved: iommu/omap: Fix buffer overflow in debugfs There are two issues here: 1) The "len" variable needs to be checked before the very first write. Otherwise if omap2_iommu_dump_ctx() with "bytes" less than 32 it is a buffer overflow. 2) The snprintf() function returns the number of bytes that *would* have been copied if there were enough space. But we want to know the number of bytes which were *actually* copied so use scnprintf()

CVSS vector

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

Affected Packages4 packages

NVDlinux/linux_kernel3.194.9.331+7
Debianlinux/linux_kernel< 5.10.158-1+3
CVEListV5linux/linuxbd4396f09a4a9e77423e92ec9448217ab46f6edf706e359cf046c142db290244c3f4938b20fbe805+9
debiandebian/linux< linux 6.0.3-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-q6qc-4j4f-5vqp: In the Linux kernel, the following vulnerability has been resolved: iommu/omap: Fix buffer overflow in debugfs There are two issues here: 1) The "l2025-09-15
OSV
CVE-2022-50301: In the Linux kernel, the following vulnerability has been resolved: iommu/omap: Fix buffer overflow in debugfs There are two issues here: 1) The "len"2025-09-15

📋Vendor Advisories

2
Red Hat
kernel: iommu/omap: Fix buffer overflow in debugfs2025-09-15
Debian
CVE-2022-50301: linux - In the Linux kernel, the following vulnerability has been resolved: iommu/omap:...2022
CVE-2022-50301 — Out-of-bounds Write in Linux | cvebase