CVE-2024-42285
RDMA/iwcm: Fix a use-after-free related to destroying CM IDs
Check your servers for CVE-2024-42285
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42285 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
RDMA/iwcm: Fix a use-after-free related to destroying CM IDs
iw_conn_req_handler() associates a new struct rdma_id_private (conn_id) with an existing struct iw_cm_id (cm_id) as follows:
conn_id->cm_id.iw = cm_id; cm_id->context = conn_id; cm_id->cm_handler = cma_iw_handler;
rdma_destroy_id() frees both the cm_id and the struct rdma_id_private. Make sure that cm_work_handler() does not trigger a use-after-free by only freeing of the struct rdma_id_private after all pending work has finished.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.87%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 59.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before d91d253c87fd1efece521ff2612078a35af673c6 affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before 7f25f296fc9bd0435be14e89bf657cd615a23574 affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before 94ee7ff99b87435ec63211f632918dc7f44dac79 affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before 557d035fe88d78dd51664f4dc0e1896c04c97cf6 affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before dc8074b8901caabb97c2d353abd6b4e7fa5a59a5 affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before ff5bbbdee08287d75d72e65b72a2b76d9637892a affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before ee39384ee787e86e9db4efb843818ef0ea9cb8ae affected from 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, before aee2424246f9f1dadc33faa78990c1e2eb7826e4
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 4.19.320 up to and including 4.19.* unaffected from 5.4.282 up to and including 5.4.* unaffected from 5.10.224 up to and including 5.10.* unaffected from 5.15.165 up to and including 5.15.* unaffected from 6.1.103 up to and including 6.1.* unaffected from 6.6.44 up to and including 6.6.* unaffected from 6.10.3 up to and including 6.10.* unaffected 6.11 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42285 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42285
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-42285
trivy image --scanners vuln IMAGE | grep CVE-2024-42285
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d91d253c87fd1efece521ff2612078a35af673c6 git.kernel.org
- https://git.kernel.org/stable/c/7f25f296fc9bd0435be14e89bf657cd615a23574 git.kernel.org
- https://git.kernel.org/stable/c/94ee7ff99b87435ec63211f632918dc7f44dac79 git.kernel.org
- https://git.kernel.org/stable/c/557d035fe88d78dd51664f4dc0e1896c04c97cf6 git.kernel.org
- https://git.kernel.org/stable/c/dc8074b8901caabb97c2d353abd6b4e7fa5a59a5 git.kernel.org
- https://git.kernel.org/stable/c/ff5bbbdee08287d75d72e65b72a2b76d9637892a git.kernel.org
- https://git.kernel.org/stable/c/ee39384ee787e86e9db4efb843818ef0ea9cb8ae git.kernel.org
- https://git.kernel.org/stable/c/aee2424246f9f1dadc33faa78990c1e2eb7826e4 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html lists.debian.org
Source: the record CVE-2024-42285 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse