CVE-2021-47249: net: rds: fix memory leak in rds_recvmsg
Vulnerability summary
CVE-2021-47249 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.7% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 21-05-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
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 | }
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu86 products
- linuxAll versions (No fix recorded) | < 4.15.0-156.163 | < 5.4.0-81.91
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 4.15.0-1111.118 | < 5.4.0-1055.58
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02 | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 2038cd15eacdf7512755c27686822e0052eb9042 | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 5946fbf48355f5a8caeff72580c7658da5966b86 | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < b25b60d076164edb3025e85aabd2cf50a5215b91 | ≥ bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 49bfcbfd989a8f1f23e705759a6bb099de2cff9f | 2.6.30
- linux_kernel≥ 2.6.30, < 4.4.274 | ≥ 4.5, < 4.9.274 | ≥ 4.10, < 4.14.238 | ≥ 4.15, < 4.19.196 | ≥ 4.20, < 5.4.128 | ≥ 5.5, < 5.10.46 | ≥ 5.11, < 5.12.13 | 5.13:rc1 | 5.13:rc2 | 5.13:rc3 | 5.13:rc4 | 5.13:rc5 | 5.13:rc6
Debian1 product
- linux< 5.10.46-1
3 vendors · 89 products