CVE-2024-35902

net/rds: fix possible cp null dereference

MEDIUM
5.5
CVSS Score
Published: May 19, 2024 at 08:34 AM UTC
Updated: October 15, 2026 at 01:17 AM UTC
3 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19.310 ≤ v < 4.19.3125.10.213 ≤ v < 5.10.2155.15.152 ≤ v < 5.15.1545.4.272 ≤ v < 5.7.2746.1.82 ≤ v < 6.1.856.6.22 ≤ v < 6.6.266.7.10 ≤ v < 6.8.52b505d05280739ce31d5708da840f42df827cb854.19.3105.10.2135.15.1525.4.2726.1.826.6.226.7.106.96.9 rc16.9 rc2786854141057751bc08eb26f1b02e97c1631c8f4907761307469adecb02461a14120e9a1812a5fb1997efea2bf3a4adb96c306b9ad6a91442237bf5b998fd719e6d6468b930ac0c44552ea9ff8b07b809dfc15a10dfd44f8ff7f27488651cb5be6af83c2b562ebe21ed9adcf42242797dd6cb75beef12bf0c055fc00c07be1f0df7375ab0036cebd1106ed38
Vendor states this is fixed in 62fc3357e079a07a22465b9b6ef71bb6ea75ee4b (fixed)
Vendor states this is fixed in 6794090c742008c53b344b35b021d4a3093dc50a (fixed)
Vendor states this is fixed in 92309bed3c5fbe2ccd4c45056efd42edbd06162d (fixed)
Vendor states this is fixed in bcd46782e2ec3825d10c1552fcb674d491cc09f9 (fixed)
Vendor states this is fixed in cbaac2e5488ed54833897264a5ffb2a341a9f196 (fixed)
Vendor states this is fixed in cfb786b03b03c5ff38882bee38525eb9987e4d14 (fixed)
Vendor states this is fixed in d275de8ea7be3a453629fddae41d4156762e814c (fixed)
Vendor states this is fixed in d49fac38479bfdaec52b3ea274d290c47a294029 (fixed)
Vendor states this is fixed in 4.19.312 (unaffected)
Vendor states this is fixed in 5.10.215 (unaffected)
Vendor states this is fixed in 5.15.154 (unaffected)
Vendor states this is fixed in 5.4.274 (unaffected)
Affected range stops below 5.7.274, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.85 (unaffected)
Vendor states this is fixed in 6.6.26 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)
Vendor states this is fixed in 6.8.5 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/62fc3357e079a07a22465b9b6ef71bb6ea75ee4b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6794090c742008c53b344b35b021d4a3093dc50a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92309bed3c5fbe2ccd4c45056efd42edbd06162d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bcd46782e2ec3825d10c1552fcb674d491cc09f9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cbaac2e5488ed54833897264a5ffb2a341a9f196
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cfb786b03b03c5ff38882bee38525eb9987e4d14
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d275de8ea7be3a453629fddae41d4156762e814c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d49fac38479bfdaec52b3ea274d290c47a294029

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card