5.5
MEDIUM
CVE-2021-47249
Linux Kernel RDS Memory Leak Vulnerability
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 | }

INFO

Published Date :

May 21, 2024, 3:15 p.m.

Last Modified :

Dec. 30, 2024, 7:01 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2021-47249 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-47249 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-47249 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Dec. 30, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE NIST CWE-401
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.30 up to (excluding) 4.4.274 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.5 up to (excluding) 4.9.274 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 4.14.238 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.196 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.128 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.46 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.12.13 *cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc6:*:*:*:*:*:*
    Changed Reference Type https://git.kernel.org/stable/c/06b7cb0194bd1ede0dd27f3a946e7c0279fba44a No Types Assigned https://git.kernel.org/stable/c/06b7cb0194bd1ede0dd27f3a946e7c0279fba44a Patch
    Changed Reference Type https://git.kernel.org/stable/c/06b7cb0194bd1ede0dd27f3a946e7c0279fba44a No Types Assigned https://git.kernel.org/stable/c/06b7cb0194bd1ede0dd27f3a946e7c0279fba44a Patch
    Changed Reference Type https://git.kernel.org/stable/c/1f79bc8ae81c05eb112a53f981cb2c244ee50d02 No Types Assigned https://git.kernel.org/stable/c/1f79bc8ae81c05eb112a53f981cb2c244ee50d02 Patch
    Changed Reference Type https://git.kernel.org/stable/c/1f79bc8ae81c05eb112a53f981cb2c244ee50d02 No Types Assigned https://git.kernel.org/stable/c/1f79bc8ae81c05eb112a53f981cb2c244ee50d02 Patch
    Changed Reference Type https://git.kernel.org/stable/c/2038cd15eacdf7512755c27686822e0052eb9042 No Types Assigned https://git.kernel.org/stable/c/2038cd15eacdf7512755c27686822e0052eb9042 Patch
    Changed Reference Type https://git.kernel.org/stable/c/2038cd15eacdf7512755c27686822e0052eb9042 No Types Assigned https://git.kernel.org/stable/c/2038cd15eacdf7512755c27686822e0052eb9042 Patch
    Changed Reference Type https://git.kernel.org/stable/c/423c6939758fb3b9cf5abbd1e7792068a5c4ae8c No Types Assigned https://git.kernel.org/stable/c/423c6939758fb3b9cf5abbd1e7792068a5c4ae8c Patch
    Changed Reference Type https://git.kernel.org/stable/c/423c6939758fb3b9cf5abbd1e7792068a5c4ae8c No Types Assigned https://git.kernel.org/stable/c/423c6939758fb3b9cf5abbd1e7792068a5c4ae8c Patch
    Changed Reference Type https://git.kernel.org/stable/c/49bfcbfd989a8f1f23e705759a6bb099de2cff9f No Types Assigned https://git.kernel.org/stable/c/49bfcbfd989a8f1f23e705759a6bb099de2cff9f Patch
    Changed Reference Type https://git.kernel.org/stable/c/49bfcbfd989a8f1f23e705759a6bb099de2cff9f No Types Assigned https://git.kernel.org/stable/c/49bfcbfd989a8f1f23e705759a6bb099de2cff9f Patch
    Changed Reference Type https://git.kernel.org/stable/c/5946fbf48355f5a8caeff72580c7658da5966b86 No Types Assigned https://git.kernel.org/stable/c/5946fbf48355f5a8caeff72580c7658da5966b86 Patch
    Changed Reference Type https://git.kernel.org/stable/c/5946fbf48355f5a8caeff72580c7658da5966b86 No Types Assigned https://git.kernel.org/stable/c/5946fbf48355f5a8caeff72580c7658da5966b86 Patch
    Changed Reference Type https://git.kernel.org/stable/c/8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f No Types Assigned https://git.kernel.org/stable/c/8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f Patch
    Changed Reference Type https://git.kernel.org/stable/c/8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f No Types Assigned https://git.kernel.org/stable/c/8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f Patch
    Changed Reference Type https://git.kernel.org/stable/c/b25b60d076164edb3025e85aabd2cf50a5215b91 No Types Assigned https://git.kernel.org/stable/c/b25b60d076164edb3025e85aabd2cf50a5215b91 Patch
    Changed Reference Type https://git.kernel.org/stable/c/b25b60d076164edb3025e85aabd2cf50a5215b91 No Types Assigned https://git.kernel.org/stable/c/b25b60d076164edb3025e85aabd2cf50a5215b91 Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/06b7cb0194bd1ede0dd27f3a946e7c0279fba44a
    Added Reference https://git.kernel.org/stable/c/1f79bc8ae81c05eb112a53f981cb2c244ee50d02
    Added Reference https://git.kernel.org/stable/c/2038cd15eacdf7512755c27686822e0052eb9042
    Added Reference https://git.kernel.org/stable/c/423c6939758fb3b9cf5abbd1e7792068a5c4ae8c
    Added Reference https://git.kernel.org/stable/c/49bfcbfd989a8f1f23e705759a6bb099de2cff9f
    Added Reference https://git.kernel.org/stable/c/5946fbf48355f5a8caeff72580c7658da5966b86
    Added Reference https://git.kernel.org/stable/c/8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f
    Added Reference https://git.kernel.org/stable/c/b25b60d076164edb3025e85aabd2cf50a5215b91
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 28, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 21, 2024

    Action Type Old Value New Value
    Added 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 | }
    Added Reference kernel.org https://git.kernel.org/stable/c/8c3ec88b03e9e4ca117dcdc4204fd3edcd02084f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/423c6939758fb3b9cf5abbd1e7792068a5c4ae8c [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1f79bc8ae81c05eb112a53f981cb2c244ee50d02 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/06b7cb0194bd1ede0dd27f3a946e7c0279fba44a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2038cd15eacdf7512755c27686822e0052eb9042 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/5946fbf48355f5a8caeff72580c7658da5966b86 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b25b60d076164edb3025e85aabd2cf50a5215b91 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/49bfcbfd989a8f1f23e705759a6bb099de2cff9f [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-47249 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-47249 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 15, 2025 12:43