5.5

CVE-2021-47249: net: rds: fix memory leak in rds_recvmsg

Analyzed
AliasesUBUNTU-CVE-2021-47249DEBIAN-CVE-2021-47249
Published 21-05-2024Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.24%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 21-05-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

12 links
Show all 12 references