5.5
MEDIUM
CVE-2024-35902
Red Hat RDS Null Pointer Dereference Vulnerability
Description

In the Linux kernel, the following vulnerability has been resolved: net/rds: fix possible cp null dereference cp might be null, calling cp->cp_conn would produce null dereference [Simon Horman adds:] Analysis: * cp is a parameter of __rds_rdma_map and is not reassigned. * The following call-sites pass a NULL cp argument to __rds_rdma_map() - rds_get_mr() - rds_get_mr_for_dest * Prior to the code above, the following assumes that cp may be NULL (which is indicative, but could itself be unnecessary) trans_private = rs->rs_transport->get_mr( sg, nents, rs, &mr->r_key, cp ? cp->cp_conn : NULL, args->vec.addr, args->vec.bytes, need_odp ? ODP_ZEROBASED : ODP_NOT_NEEDED); * The code modified by this patch is guarded by IS_ERR(trans_private), where trans_private is assigned as per the previous point in this analysis. The only implementation of get_mr that I could locate is rds_ib_get_mr() which can return an ERR_PTR if the conn (4th) argument is NULL. * ret is set to PTR_ERR(trans_private). rds_ib_get_mr can return ERR_PTR(-ENODEV) if the conn (4th) argument is NULL. Thus ret may be -ENODEV in which case the code in question will execute. Conclusion: * cp may be NULL at the point where this patch adds a check; this patch does seem to address a possible bug

INFO

Published Date :

May 19, 2024, 9:15 a.m.

Last Modified :

Dec. 30, 2024, 7:47 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-2024-35902 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
1 Debian debian_linux
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-35902.

URL Resource
https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b Patch
https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a Patch
https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d Patch
https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 Patch
https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 Patch
https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 Patch
https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c Patch
https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 Patch
https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b Patch
https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a Patch
https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d Patch
https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 Patch
https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 Patch
https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 Patch
https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c Patch
https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 Patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Mailing List
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List

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-2024-35902 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-35902 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-476
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.19.310 up to (excluding) 4.19.312 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.4.272 up to (excluding) 5.7.274 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10.213 up to (excluding) 5.10.215 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15.152 up to (excluding) 5.15.154 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1.82 up to (excluding) 6.1.85 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6.22 up to (excluding) 6.6.26 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7.10 up to (excluding) 6.8.5 *cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
    Changed Reference Type https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b No Types Assigned https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b Patch
    Changed Reference Type https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b No Types Assigned https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b Patch
    Changed Reference Type https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a No Types Assigned https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a Patch
    Changed Reference Type https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a No Types Assigned https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a Patch
    Changed Reference Type https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d No Types Assigned https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d Patch
    Changed Reference Type https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d No Types Assigned https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d Patch
    Changed Reference Type https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 No Types Assigned https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 Patch
    Changed Reference Type https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 No Types Assigned https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 Patch
    Changed Reference Type https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 No Types Assigned https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 Patch
    Changed Reference Type https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 No Types Assigned https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 Patch
    Changed Reference Type https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 No Types Assigned https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 Patch
    Changed Reference Type https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 No Types Assigned https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 Patch
    Changed Reference Type https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c No Types Assigned https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c Patch
    Changed Reference Type https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c No Types Assigned https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c Patch
    Changed Reference Type https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 No Types Assigned https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 Patch
    Changed Reference Type https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 No Types Assigned https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 Patch
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Mailing List
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List
  • 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/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b
    Added Reference https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a
    Added Reference https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d
    Added Reference https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9
    Added Reference https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196
    Added Reference https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14
    Added Reference https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c
    Added Reference https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 05, 2024

    Action Type Old Value New Value
    Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
    Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 27, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 25, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

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

    May. 19, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: net/rds: fix possible cp null dereference cp might be null, calling cp->cp_conn would produce null dereference [Simon Horman adds:] Analysis: * cp is a parameter of __rds_rdma_map and is not reassigned. * The following call-sites pass a NULL cp argument to __rds_rdma_map() - rds_get_mr() - rds_get_mr_for_dest * Prior to the code above, the following assumes that cp may be NULL (which is indicative, but could itself be unnecessary) trans_private = rs->rs_transport->get_mr( sg, nents, rs, &mr->r_key, cp ? cp->cp_conn : NULL, args->vec.addr, args->vec.bytes, need_odp ? ODP_ZEROBASED : ODP_NOT_NEEDED); * The code modified by this patch is guarded by IS_ERR(trans_private), where trans_private is assigned as per the previous point in this analysis. The only implementation of get_mr that I could locate is rds_ib_get_mr() which can return an ERR_PTR if the conn (4th) argument is NULL. * ret is set to PTR_ERR(trans_private). rds_ib_get_mr can return ERR_PTR(-ENODEV) if the conn (4th) argument is NULL. Thus ret may be -ENODEV in which case the code in question will execute. Conclusion: * cp may be NULL at the point where this patch adds a check; this patch does seem to address a possible bug
    Added Reference kernel.org https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b [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-2024-35902 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-2024-35902 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability