CVE-2021-47527
serial: core: fix transmit-buffer reset and memleak
Mitigation
- Upgrade Linux to 00de977f9e0aa9760d9a79d1e41ff780f74e3424 or later.
Who should check
- Anyone running Linux >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 1179b168fa3f3a6aae3bd140000455a0e58457db; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < c5da8aa441053958594f94254592bb41264bdfbf; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 64e491c1634b73d3bddc081d08620bdc92ab2c12; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 00de977f9e0aa9760d9a79d1e41ff780f74e3424
- Anyone running Linux 4.9
Vulnerability facts
- Affected
- Linux >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 1179b168fa3f3a6aae3bd140000455a0e58457db; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < c5da8aa441053958594f94254592bb41264bdfbf; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 64e491c1634b73d3bddc081d08620bdc92ab2c12; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 00de977f9e0aa9760d9a79d1e41ff780f74e3424; Linux 4.9
- Fixed in
- Linux 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206, Linux 1179b168fa3f3a6aae3bd140000455a0e58457db, Linux 64e491c1634b73d3bddc081d08620bdc92ab2c12, Linux 00de977f9e0aa9760d9a79d1e41ff780f74e3424
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: serial: core: fix transmit-buffer reset and memleak Commit 761ed4a94582 ("tty: serial_core: convert uart_close to use tty_port_close") converted serial core to use tty_port_close() but failed to notice that the transmit buffer still needs to be freed on final close. Not freeing the transmit buffer means that the buffer is no longer cleared on next open so that any ioctl() waiting for the buffer to drain might wait indefinitely (e.g. on termios changes) or that stale data can end up being transmitted in case tx is restarted. Furthermore, the buffer of any port that has been opened would leak on driver unbind. Note that the port lock is held when clearing the buffer pointer due to the ldisc race worked around by commit a5ba1d95e46e ("uart: fix race between uart_put_char() and uart_shutdown()"). Also note that the tty-port shutdown() callback is not called for console ports so it is not strictly necessary to free the buffer page after releasing the lock (cf. d72402145ace ("tty/serial: do not free trasnmit buffer page under port lock")).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 1179b168fa3f3a6aae3bd140000455a0e58457db; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < c5da8aa441053958594f94254592bb41264bdfbf; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 64e491c1634b73d3bddc081d08620bdc92ab2c12; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 00de977f9e0aa9760d9a79d1e41ff780f74e3424 | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47527. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47527.md Affected: Linux >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 1179b168fa3f3a6aae3bd140000455a0e58457db; >= 761ed4a94582ab291aa24dc… Fixed in: Linux 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206, Linux 1179b168fa3f3a6aae3bd140000455a0e58457db, Linux 64e491c1634b73d3bddc081d08620bdc92ab2c12, Linux 00de977f9e0aa9760d9a79d1e41ff780f74e3424 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/011f6c92b5bf6e1fbfdedc8b5232f64c1c493206
- https://git.kernel.org/stable/c/e74d9663fd57640fc3394abb5c76fa95b9cc2f2e
- https://git.kernel.org/stable/c/1179b168fa3f3a6aae3bd140000455a0e58457db
- https://git.kernel.org/stable/c/c5da8aa441053958594f94254592bb41264bdfbf
- https://git.kernel.org/stable/c/e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f
- https://git.kernel.org/stable/c/64e491c1634b73d3bddc081d08620bdc92ab2c12
- https://git.kernel.org/stable/c/00de977f9e0aa9760d9a79d1e41ff780f74e3424
FAQ
Is CVE-2021-47527 being exploited?
There is no confirmed exploitation: CVE-2021-47527 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47527?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47527?
Linux >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 1179b168fa3f3a6aae3bd140000455a0e58457db; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < c5da8aa441053958594f94254592bb41264bdfbf; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 64e491c1634b73d3bddc081d08620bdc92ab2c12; >= 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 00de977f9e0aa9760d9a79d1e41ff780f74e3424; Linux 4.9.
Is there a fix for CVE-2021-47527?
Yes. Fixed in Linux 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206, Linux 1179b168fa3f3a6aae3bd140000455a0e58457db, Linux 64e491c1634b73d3bddc081d08620bdc92ab2c12, Linux 00de977f9e0aa9760d9a79d1e41ff780f74e3424. Upgrade Linux to 00de977f9e0aa9760d9a79d1e41ff780f74e3424 or later.
How do I check if I'm affected by CVE-2021-47527?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.