CVE-2022-49292

High

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: oss: Fix PCM OSS buffer allocation overflow We've got syzbot reports hitting INT_MAX overflow at vmalloc() allocation that is called from snd_pcm_plug_alloc(). Although we apply the restrictions to input parameters, it's based only on the hw_params of the underlying PCM device. Since the PCM OSS layer allocates a temporary buffer for the data conversion, the size may become unexpectedly large when more channels or higher rates is given; in the reported case, it went over INT_MAX, hence it hits WARN_ON(). This patch is an attempt to avoid such an overflow and an allocation for too large buffers. First off, it adds the limit of 1MB as the upper bound for period bytes. This must be large enough for all use cases, and we really don't want to handle a larger temporary buffer than this size. The size check is performed at two places, where the original period bytes is calculated and where the plugin buffer size is calculated. In addition, the driver uses array_size() and array3_size() for multiplications to catch overflows for the converted period size and buffer bytes.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedFeb 26, 2025
First seenFeb 26, 2025

How to fix

Update
  • linux linux_kernel4.19.237, 5.4.188, 5.10.109, 5.15.32, 5.16.18 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernelv < 4.19.237, 4.20 ≤ v < 5.4.188, 5.5 ≤ v < 5.10.109, 5.11 ≤ v < 5.15.32, 5.16 ≤ v < 5.16.18, 5.174.19.237, 5.4.188, 5.10.109, 5.15.32, 5.16.18

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2022-49292 · Linux Kernel · Dark Radar