Skip to main content
Network Thinking Solutions Logo

CVE-2021-47249

In the Linux kernel, the following vulnerability has been resolved: net: rds: fix memory leak in rds_recvmsg Syzbot reported memory leak in rds.

All CVEs
CVE-2021-47249Published 5/21/2024

In the Linux kernel, the following vulnerability has been resolved: net: rds: fix memory leak in rds_recvmsg Syzbot reported memory leak in rds.

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: net: rds: fix memory leak in rds_recvmsg Syzbot reported memory leak in rds. The problem was in unputted refcount in case of error. int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int msg_flags) { ... if (!rds_next_incoming(rs, &inc)) { ... } After this "if" inc refcount incremented and if (rds_cmsg_recv(inc, msg, rs)) { ret = -EFAULT; goto out; } ... out: return ret; } in case of rds_cmsg_recv() fail the refcount won't be decremented. And it's easy to see from ftrace log, that rds_inc_addref() don't have rds_inc_put() pair in rds_recvmsg() after rds_cmsg_recv() 1) | rds_recvmsg() { 1) 3.721 us | rds_inc_addref(); 1) 3.853 us | rds_message_inc_copy_to_user(); 1) + 10.395 us | rds_cmsg_recv(); 1) + 34.260 us | }

Published
5/21/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
≥ 2.6.30, < 4.4.274

Verify advisory

Source
linux kernel
linux
≥ 4.5, < 4.9.274

Verify advisory

Source
linux kernel
linux
≥ 4.10, < 4.14.238

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.196

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.128

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.46

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.12.13

Verify advisory

Source
linux kernel
linux
5.13

Verify advisory

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

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 2038cd15eacdf7512755c27686822e0052eb9042

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 5946fbf48355f5a8caeff72580c7658da5966b86

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < b25b60d076164edb3025e85aabd2cf50a5215b91

Verify advisory

Source
Linux
Linux
≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 49bfcbfd989a8f1f23e705759a6bb099de2cff9f

Verify advisory

Source
Linux
Linux
2.6.30

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.