CVE-2021-47330
tty: serial: 8250: serial_cs: Fix a memory leak in error handling path
Check your servers for CVE-2021-47330
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-47330 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:
tty: serial: 8250: serial_cs: Fix a memory leak in error handling path
In the probe function, if the final 'serial_config()' fails, 'info' is leaking.
Add a resource handling path to free this memory.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before b5a2799cd62ed30c81b22c23028d9ee374e2138c affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before 331f5923fce4f45b8170ccf06c529e8eb28f37bc affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before 34f4590f5ec9859ea9136249f528173d150bd584 affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461 affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before ee16bed959862a6de2913f71a04cb563d7237b67 affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before 7a80f71601af015856a0aeb1e3c294037ac3dd32 affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before c39cf4df19acf0133fa284a8cd83fad42cd13cc2 affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before b2ef1f5de40342de44fc5355321595f91774dab5 affected from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, before fad92b11047a748c996ebd6cfb164a63814eeb2e
Other versions: unaffected
|
| Linux |
affected 2.6.17 unaffected before 2.6.17 unaffected from 4.4.276 up to and including 4.4.* unaffected from 4.9.276 up to and including 4.9.* unaffected from 4.14.240 up to and including 4.14.* unaffected from 4.19.198 up to and including 4.19.* unaffected from 5.4.134 up to and including 5.4.* unaffected from 5.10.52 up to and including 5.10.* unaffected from 5.12.19 up to and including 5.12.* unaffected from 5.13.4 up to and including 5.13.* unaffected 5.14 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-47330 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47330
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-47330
trivy image --scanners vuln IMAGE | grep CVE-2021-47330
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/b5a2799cd62ed30c81b22c23028d9ee374e2138c git.kernel.org
- https://git.kernel.org/stable/c/331f5923fce4f45b8170ccf06c529e8eb28f37bc git.kernel.org
- https://git.kernel.org/stable/c/34f4590f5ec9859ea9136249f528173d150bd584 git.kernel.org
- https://git.kernel.org/stable/c/cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461 git.kernel.org
- https://git.kernel.org/stable/c/ee16bed959862a6de2913f71a04cb563d7237b67 git.kernel.org
- https://git.kernel.org/stable/c/7a80f71601af015856a0aeb1e3c294037ac3dd32 git.kernel.org
- https://git.kernel.org/stable/c/c39cf4df19acf0133fa284a8cd83fad42cd13cc2 git.kernel.org
- https://git.kernel.org/stable/c/b2ef1f5de40342de44fc5355321595f91774dab5 git.kernel.org
- https://git.kernel.org/stable/c/fad92b11047a748c996ebd6cfb164a63814eeb2e git.kernel.org
Source: the record CVE-2021-47330 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