Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-47249

MEDIUM 5.5EPSS 16%

net: rds: fix memory leak in rds_recvmsg

Mitigation

  • Upgrade Linux to 49bfcbfd989a8f1f23e705759a6bb099de2cff9f or later.

Who should check

  • Anyone running Linux >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 2038cd15eacdf7512755c27686822e0052eb9042; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 5946fbf48355f5a8caeff72580c7658da5966b86; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < b25b60d076164edb3025e85aabd2cf50a5215b91; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 49bfcbfd989a8f1f23e705759a6bb099de2cff9f
  • Anyone running Linux 2.6.30

Vulnerability facts

Affected
Linux >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 2038cd15eacdf7512755c27686822e0052eb9042; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 5946fbf48355f5a8caeff72580c7658da5966b86; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < b25b60d076164edb3025e85aabd2cf50a5215b91; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 49bfcbfd989a8f1f23e705759a6bb099de2cff9f; Linux 2.6.30
Fixed in
Linux 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f, Linux 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c, Linux 1f79bc8ae81c05eb112a53f981cb2c244ee50d02, Linux 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a, Linux 2038cd15eacdf7512755c27686822e0052eb9042, Linux 5946fbf48355f5a8caeff72580c7658da5966b86, Linux 49bfcbfd989a8f1f23e705759a6bb099de2cff9f
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-401
Published
Modified

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 | }

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 2038cd15eacdf7512755c27686822e0052eb9042; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 5946fbf48355f5a8caeff72580c7658da5966b86; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < b25b60d076164edb3025e85aabd2cf50a5215b91; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 49bfcbfd989a8f1f23e705759a6bb099de2cff9f—cvelist
Linux2.6.30—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-47249. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47249.md
Affected: Linux >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02; >= bdbe6fbc6a2f2ccfb384b14…
Fixed in: Linux 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f, Linux 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c, Linux 1f79bc8ae81c05eb112a53f981cb2c244ee50d02, Linux 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a, Linux 2038cd15eacdf7512755c27686822e0052eb9042, Linux 5946fbf48355f5a8caeff72580c7658da5966b86, Linux 49bfc…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-47249 being exploited?

There is no confirmed exploitation: CVE-2021-47249 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-47249?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2021-47249?

Linux >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 1f79bc8ae81c05eb112a53f981cb2c244ee50d02; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 2038cd15eacdf7512755c27686822e0052eb9042; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 5946fbf48355f5a8caeff72580c7658da5966b86; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < b25b60d076164edb3025e85aabd2cf50a5215b91; >= bdbe6fbc6a2f2ccfb384b141b257677d2a8d36fb, < 49bfcbfd989a8f1f23e705759a6bb099de2cff9f; Linux 2.6.30.

Is there a fix for CVE-2021-47249?

Yes. Fixed in Linux 8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f, Linux 423c6939758fb3b9cf5abbd1e7792068a5c4ae8c, Linux 1f79bc8ae81c05eb112a53f981cb2c244ee50d02, Linux 06b7cb0194bd1ede0dd27f3a946e7c0279fba44a, Linux 2038cd15eacdf7512755c27686822e0052eb9042, Linux 5946fbf48355f5a8caeff72580c7658da5966b86, Linux 49bfcbfd989a8f1f23e705759a6bb099de2cff9f. Upgrade Linux to 49bfcbfd989a8f1f23e705759a6bb099de2cff9f or later.

How do I check if I'm affected by CVE-2021-47249?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors