CVE-2022-49292

Updated: 2025-09-24 00:55:40.385709

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.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0.0
CVSS Version 3.x HIGH 7.8

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

CentOS 6 ELS kernel 2.6.32 7.8 HIGH Released CLSA-2025:1762454401 2025-11-11 03:28:27
CentOS 7 ELS kernel 3.10.0 7.8 HIGH Released CLSA-2025:1759431860 2025-10-15 20:22:59
CentOS 8.4 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2025:1763731262 2025-11-21 22:02:22 Ignored due to low severity
CentOS 8.5 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2025:1763734783 2025-11-21 22:02:23 Ignored due to low severity
Oracle Linux 6 ELS kernel 2.6.32 7.8 HIGH Released CLSA-2025:1762455270 2025-11-07 00:01:41
Oracle Linux 7 ELS kernel 3.10.0 7.8 HIGH Released CLSA-2025:1759431869 2025-10-02 23:04:07
RHEL 7 ELS kernel 3.10.0 7.8 HIGH Released CLSA-2025:1759432250 2025-10-02 23:04:34
Ubuntu 16.04 ELS linux-hwe 4.15.0 7.8 HIGH Released CLSA-2025:1760713752 2025-10-17 16:13:16
Ubuntu 16.04 ELS linux 4.4.0 7.8 HIGH Released CLSA-2025:1760983231 2025-10-20 21:18:40
Ubuntu 18.04 ELS linux 4.15.0 7.8 HIGH Released CLSA-2025:1760647898 2025-10-17 15:47:49