# CVE-2022-49292: ALSA: oss: Fix PCM OSS buffer allocation overflow

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-02-26T01:56:28.552Z
- Modified: 2026-08-05T08:54:40.337Z
- Weaknesses: CWE-787
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a63af1baf0a5e11827db60e3127f87e437cab6e5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0c4190b41a69990666b4000999e27f8f1b2a426b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5ce74ff7059341d8b2f4d01c3383491df63d1898; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7a40cbf3579a8e14849ba7ce46309c1992658d2b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fb08bf99195a87c798bc8ae1357337a981faeade; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e74a069c6a7bb505f3ade141dddf85f4b0b5145a; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before efb6402c3c4a7c26d97c92d70186424097b6e366; 2.6.12 (not affected: before 2.6.12; from 4.19.237 up to 4.19.*; from 5.4.188 up to 5.4.*; from 5.10.109 up to 5.10.*; from 5.15.32 up to 5.15.*; from 5.16.18 up to 5.16.*; from 5.17.1 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: before 4.19.237; from 4.20 before 5.4.188; from 5.5 before 5.10.109; from 5.11 before 5.15.32; from 5.16 before 5.16.18; 5.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/a63af1baf0a5e11827db60e3127f87e437cab6e5> (patch)
- <https://git.kernel.org/stable/c/0c4190b41a69990666b4000999e27f8f1b2a426b> (patch)
- <https://git.kernel.org/stable/c/5ce74ff7059341d8b2f4d01c3383491df63d1898> (patch)
- <https://git.kernel.org/stable/c/7a40cbf3579a8e14849ba7ce46309c1992658d2b> (patch)
- <https://git.kernel.org/stable/c/fb08bf99195a87c798bc8ae1357337a981faeade> (patch)
- <https://git.kernel.org/stable/c/e74a069c6a7bb505f3ade141dddf85f4b0b5145a> (patch)
- <https://git.kernel.org/stable/c/efb6402c3c4a7c26d97c92d70186424097b6e366> (patch)

## Sources

- CVE List: [CVE-2022-49292](https://www.cve.org/CVERecord?id=CVE-2022-49292), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49292](https://nvd.nist.gov/vuln/detail/CVE-2022-49292), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-49292 · Whole record: https://cve.day/CVE-2022-49292.json · Rebuilt by cve.day 2026-11-25T22:58:20.368Z
