# CVE-2021-47511: ALSA: pcm: oss: Fix negative period/buffer sizes

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-24 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2021-47511, DEBIAN-CVE-2021-47511
- Record: https://cvemate.com/vulnerability/CVE-2021-47511 · JSON: https://cvemate.com/vulnerability/CVE-2021-47511/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

ALSA: pcm: oss: Fix negative period/buffer sizes

The period size calculation in OSS layer may receive a negative value
as an error, but the code there assumes only the positive values and
handle them with size_t.  Due to that, a too big value may be passed
to the lower layers.

This patch changes the code to handle with ssize_t and adds the proper
error checks appropriately.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.24%, percentile 16.103%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 93)

- debian linux (Debian): \< 5.15.15-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.15.0-169.177 \| \< 5.4.0-100.113
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 4.15.0-1121.129 \| \< 5.4.0-1066.69
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1066.69~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2061.63 \| All versions (No fix recorded) \| \< 5.4.0-1069.73+fips2
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1120.128~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1131.144~14.04.1 \| \< 4.15.0-1131.144~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1070.73
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1131.144
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/be8869d388593e57223ad39297c8e54be632f2f2>
- <https://git.kernel.org/stable/c/502e1146873d870f87da3b8f93d6bf2de5f38d0c>
- <https://git.kernel.org/stable/c/8af815ab052eaf74addbbfb556d63ce2137c0e1b>
- <https://git.kernel.org/stable/c/f96c0959c1ee92adc911c10d6ec209af50105049>
- <https://git.kernel.org/stable/c/f12c8a7515f641885677960af450082569a87243>
- <https://git.kernel.org/stable/c/02b2b691b77cd7b951fa7b6c9d44d4e472cdc823>
- <https://git.kernel.org/stable/c/00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc>
- <https://git.kernel.org/stable/c/9d2479c960875ca1239bcb899f386970c13d9cfe>
- <https://ubuntu.com/security/CVE-2021-47511>
- <https://www.cve.org/CVERecord?id=CVE-2021-47511>
- <https://git.kernel.org/linus/9d2479c960875ca1239bcb899f386970c13d9cfe>
- <https://security-tracker.debian.org/tracker/CVE-2021-47511>

---

Data as of 2026-12-05T18:19:17.068Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
