Skip to contentSkip to conversation

CVE-2024-57935: RDMA/hns: Fix accessing invalid dip_ctx during destroying QP

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 21, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

RDMA/hns: Fix accessing invalid dip_ctx during destroying QP

If it fails to modify QP to RTR, dip_ctx will not be attached. And during detroying QP, the invalid dip_ctx pointer will be accessed.

The Linux kernel CVE team has assigned CVE-2024-57935 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12.2 with commit f48084857b9e3d73c1d290307b5a11f61e6f666a and fixed in 6.12.9 with commit a448c775f0aec6cfbee4bda561447c707153504a
	Issue introduced in 6.11.11 with commit 84707ec6f651df98a141cad59f726d30e6f15574

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2024-57935

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/a448c775f0aec6cfbee4bda561447c707153504a
	https://git.kernel.org/stable/c/0572eccf239ce4bd89bd531767ec5ab20e249290