CVE-2021-47527serial: core: fix transmit-buffer reset and memleak
- 5.5MediumCVSS base score
- 0.25%Exploitation in 30 daysEPSS · top 83% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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")).
Timeline
ID reserved
By Linux
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.25% · top 83% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < 1179b168fa3f3a6aae3bd140000455a0e58457db
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < c5da8aa441053958594f94254592bb41264bdfbf
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < 64e491c1634b73d3bddc081d08620bdc92ab2c12
- affected 761ed4a94582ab291aa24dcbea4e01e8936488c8 – < 00de977f9e0aa9760d9a79d1e41ff780f74e3424
- affected 4.9
- unaffected < 4.9
- unaffected 4.9.292 – ≤ 4.9.*
- unaffected 4.14.257 – ≤ 4.14.*
- unaffected 4.19.220 – ≤ 4.19.*
- unaffected 5.4.164 – ≤ 5.4.*
- unaffected 5.10.84 – ≤ 5.10.*
- unaffected 5.15.7 – ≤ 5.15.*
- unaffected 5.16 – ≤ *
References
References7
- https://git.kernel.org/stable/c/011f6c92b5bf6e1fbfdedc8b5232f64c1c493206 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/e74d9663fd57640fc3394abb5c76fa95b9cc2f2e (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/1179b168fa3f3a6aae3bd140000455a0e58457db (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/c5da8aa441053958594f94254592bb41264bdfbf (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/64e491c1634b73d3bddc081d08620bdc92ab2c12 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/00de977f9e0aa9760d9a79d1e41ff780f74e3424 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-33907 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47527)Record last updated .