CVE-2021-47511
ALSA: pcm: oss: Fix negative period/buffer sizes
Check your servers for CVE-2021-47511
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47511 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 29 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before be8869d388593e57223ad39297c8e54be632f2f2 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 502e1146873d870f87da3b8f93d6bf2de5f38d0c affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8af815ab052eaf74addbbfb556d63ce2137c0e1b affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f96c0959c1ee92adc911c10d6ec209af50105049 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f12c8a7515f641885677960af450082569a87243 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 02b2b691b77cd7b951fa7b6c9d44d4e472cdc823 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 9d2479c960875ca1239bcb899f386970c13d9cfe
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 4.4.295 up to and including 4.4.* unaffected from 4.9.293 up to and including 4.9.* unaffected from 4.14.258 up to and including 4.14.* unaffected from 4.19.221 up to and including 4.19.* unaffected from 5.4.165 up to and including 5.4.* unaffected from 5.10.85 up to and including 5.10.* unaffected from 5.15.8 up to and including 5.15.* unaffected 5.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47511 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47511
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47511
trivy image --scanners vuln IMAGE | grep CVE-2021-47511
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/be8869d388593e57223ad39297c8e54be632f2f2 git.kernel.org
- https://git.kernel.org/stable/c/502e1146873d870f87da3b8f93d6bf2de5f38d0c git.kernel.org
- https://git.kernel.org/stable/c/8af815ab052eaf74addbbfb556d63ce2137c0e1b git.kernel.org
- https://git.kernel.org/stable/c/f96c0959c1ee92adc911c10d6ec209af50105049 git.kernel.org
- https://git.kernel.org/stable/c/f12c8a7515f641885677960af450082569a87243 git.kernel.org
- https://git.kernel.org/stable/c/02b2b691b77cd7b951fa7b6c9d44d4e472cdc823 git.kernel.org
- https://git.kernel.org/stable/c/00a860678098fcd9fa8db2b5fb9d2ddf4776d4cc git.kernel.org
- https://git.kernel.org/stable/c/9d2479c960875ca1239bcb899f386970c13d9cfe git.kernel.org
Source: the record CVE-2021-47511 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse