Skip to main content
Network Thinking Solutions Logo

CVE-2021-47527

Linux kernel: serial: core: fix transmit-buffer reset and memleak

All CVEs
CVE-2021-47527Published 5/24/2024

Linux kernel: serial: core: fix transmit-buffer reset and memleak

Vendor advisory
CVSS5.5Medium

Overview

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")).

Published
5/24/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 4.9, < 4.9.292

Verify advisory

Source
linux kernel
linux
≥ 4.10, < 4.14.257

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.220

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.164

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.84

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.7

Verify advisory

Source
linux kernel
linux
5.16

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 011f6c92b5bf6e1fbfdedc8b5232f64c1c493206

Verify advisory

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e74d9663fd57640fc3394abb5c76fa95b9cc2f2e

Verify advisory

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 1179b168fa3f3a6aae3bd140000455a0e58457db

Verify advisory

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < c5da8aa441053958594f94254592bb41264bdfbf

Verify advisory

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f

Verify advisory

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 64e491c1634b73d3bddc081d08620bdc92ab2c12

Verify advisory

Source
Linux
Linux
≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8, < 00de977f9e0aa9760d9a79d1e41ff780f74e3424

Verify advisory

Source
Linux
Linux
4.9

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.