{"id":"DEBIAN-CVE-2024-35902","details":"In the Linux kernel, the following vulnerability has been resolved:  net/rds: fix possible cp null dereference  cp might be null, calling cp-\u003ecp_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)  \ttrans_private = rs-\u003ers_transport-\u003eget_mr( \t\tsg, nents, rs, &mr-\u003er_key, cp ? cp-\u003ecp_conn : NULL, \t\targs-\u003evec.addr, args-\u003evec.bytes, \t\tneed_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","modified":"2026-09-15T09:03:07.495749063Z","published":"2024-05-19T09:15:11.037Z","upstream":["CVE-2024-35902"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-35902"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.85-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1","6.1.64-1","6.1.66-1","6.1.67-1","6.1.69-1","6.1.69-1~bpo11+1","6.1.76-1","6.1.76-1~bpo11+1","6.1.82-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-35902.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8.9-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-35902.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8.9-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-35902.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}