CVE-2022-49030

HIGH EPSS 19.5%
Published Oct 21, 20241y ago · Modified Jun 17, 20262w ago
7.8 CVSS 3.1
High
Find Similar
Published Oct 21, 2024 1y ago
Last Modified Jun 17, 2026 2w ago

Description

In the Linux kernel, the following vulnerability has been resolved: libbpf: Handle size overflow for ringbuf mmap The maximum size of ringbuf is 2GB on x86-64 host, so 2 * max_entries will overflow u32 when mapping producer page and data pages. Only casting max_entries to size_t is not enough, because for 32-bits application on 64-bits kernel the size of read-only mmap region also could overflow size_t. So fixing it by casting the size of read-only mmap region into a __u64 and checking whether or not there will be overflow during mmap.

CVSS Details

Base Score
7.8
Exploitability
1.8
Impact
5.9
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

EPSS Exploit Probability
19.5% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-190 Integer Overflow or Wraparound Numeric Error

Affected Products 10

VendorProductVersionRange
linuxlinux_kernel*≥5.8  –  <5.10.158
linuxlinux_kernel*≥5.11  –  <5.15.82
linuxlinux_kernel*≥5.16  –  <6.0.12
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any

References 4

  • git.kernel.org https://git.kernel.org/stable/c/0140e079a42064680394fff1199a7b5483688dec
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/535a25ab4f9a45f74ba38ab71de95e97474922ed
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/8a549ab6724520aa3c07f47e0eba820293551490
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/927cbb478adf917e0a142b94baa37f06279cc466
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/0140e079a42064680394fff1199a7b5483688dec
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/535a25ab4f9a45f74ba38ab71de95e97474922ed
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/8a549ab6724520aa3c07f47e0eba820293551490
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/927cbb478adf917e0a142b94baa37f06279cc466
    Patch