CVE-2021-47511

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

MEDIUM
5.5
CVSS Score
Published: May 24, 2024 at 03:09 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2952.6.12 ≤ v < 4.14.2582.6.12 ≤ v < 4.19.2212.6.12 ≤ v < 4.4.2952.6.12 ≤ v < 4.9.2932.6.12 ≤ v < 5.10.852.6.12 ≤ v < 5.15.82.6.12 ≤ v < 5.162.6.12 ≤ v < 5.4.1654.10 ≤ v < 4.14.2584.15 ≤ v < 4.19.2214.20 ≤ v < 5.4.1654.5 ≤ v < 4.9.2935.11 ≤ v < 5.15.85.5 ≤ v < 5.10.851da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.125.16 rc15.16 rc25.16 rc35.16 rc4
Vendor states this is fixed in 00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc (fixed)
Vendor states this is fixed in 02b2b691b77cd7b951fa7b6c9d44d4e472cdc823 (fixed)
Vendor states this is fixed in 502e1146873d870f87da3b8f93d6bf2de5f38d0c (fixed)
Vendor states this is fixed in 8af815ab052eaf74addbbfb556d63ce2137c0e1b (fixed)
Vendor states this is fixed in 9d2479c960875ca1239bcb899f386970c13d9cfe (fixed)
Vendor states this is fixed in be8869d388593e57223ad39297c8e54be632f2f2 (fixed)
Vendor states this is fixed in f12c8a7515f641885677960af450082569a87243 (fixed)
Vendor states this is fixed in f96c0959c1ee92adc911c10d6ec209af50105049 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.258 (unaffected)
Vendor states this is fixed in 4.19.221 (unaffected)
Vendor states this is fixed in 4.4.295 (unaffected)
Vendor states this is fixed in 4.9.293 (unaffected)
Vendor states this is fixed in 5.10.85 (unaffected)
Vendor states this is fixed in 5.15.8 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.165 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/02b2b691b77cd7b951fa7b6c9d44d4e472cdc823
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/502e1146873d870f87da3b8f93d6bf2de5f38d0c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8af815ab052eaf74addbbfb556d63ce2137c0e1b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9d2479c960875ca1239bcb899f386970c13d9cfe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/be8869d388593e57223ad39297c8e54be632f2f2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f12c8a7515f641885677960af450082569a87243
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f96c0959c1ee92adc911c10d6ec209af50105049

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card