# CVE-2024-57795: RDMA/rxe: Remove the direct link to net\_device

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-01-15T13:10:23.880Z
- **Modified:** 2026-08-05T11:46:34.724Z

## Who should check

- Anyone running Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 32ca3557d968e662957131374a5f81c9c9cdbba8; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 9f6f54e6a6863131442b40e14d1792b090c7ce21; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 2ac5415022d16d63d912a39a06f32f1f51140261
- Anyone running Linux 4.8

## Description

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

RDMA/rxe: Remove the direct link to net\_device

The similar patch in siw is in the link:
https://git.kernel.org/rdma/rdma/c/16b87037b48889

This problem also occurred in RXE. The following analyze this problem.
In the following Call Traces:
"
BUG: KASAN: slab-use-after-free in dev\_get\_flags+0x188/0x1d0 net/core/dev.c:8782
Read of size 4 at addr ffff8880554640b0 by task kworker/1:4/5295

CPU: 1 UID: 0 PID: 5295 Comm: kworker/1:4 Not tainted
6.12.0-rc3-syzkaller-00399-g9197b73fd7bb \#0
Hardware name: Google Compute Engine/Google Compute Engine,
BIOS Google 09/13/2024
Workqueue: infiniband ib\_cache\_event\_task
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:488
 kasan\_report+0x143/0x180 mm/kasan/report.c:601
 dev\_get\_flags+0x188/0x1d0 net/core/dev.c:8782
 rxe\_query\_port+0x12d/0x260 drivers/infiniband/sw/rxe/rxe\_verbs.c:60
 \_\_ib\_query\_port drivers/infiniband/core/device.c:2111 \[inline\]
 ib\_query\_port+0x168/0x7d0 drivers/infiniband/core/device.c:2143
 ib\_cache\_update+0x1a9/0xb80 drivers/infiniband/core/cache.c:1494
 ib\_cache\_event\_task+0xf3/0x1e0 drivers/infiniband/core/cache.c:1568
 process\_one\_work kernel/workqueue.c:3229 \[inline\]
 process\_scheduled\_works+0xa65/0x1850 kernel/workqueue.c:3310
 worker\_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret\_from\_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret\_from\_fork\_asm+0x1a/0x30 arch/x86/entry/entry\_64.S:244
 \</TASK\>
"

1). In the link \[1\],

"
 infiniband syz2: set down
"

This means that on 839.350575, the event ib\_cache\_event\_task was sent andi
queued in ib\_wq.

2). In the link \[1\],

"
 team0 (unregistering): Port device team\_slave\_0 removed
"

It indicates that before 843.251853, the net device should be freed.

3). In the link \[1\],

"
 BUG: KASAN: slab-use-after-free in dev\_get\_flags+0x188/0x1d0
"

This means that on 850.559070, this slab-use-after-free problem occurred.

In all, on 839.350575, the event ib\_cache\_event\_task was sent and queued
in ib\_wq,

before 843.251853, the net device veth was freed.

on 850.559070, this event was executed, and the mentioned freed net device
was called. Thus, the above call trace occurred.

\[1\] https://syzkaller.appspot.com/x/log.txt?x=12e7025f980000

## Affected and fixed versions

- Linux: \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 32ca3557d968e662957131374a5f81c9c9cdbba8; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 9f6f54e6a6863131442b40e14d1792b090c7ce21; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 2ac5415022d16d63d912a39a06f32f1f51140261 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 2ac5415022d16d63d912a39a06f32f1f51140261 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-57795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57795.md
Affected: Linux >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < 32ca3557d968e662957131374a5f81c9c9cdbba8; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < 9f6f54e6a6863131442b40e14d1792b090c7ce21; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < 2ac5415022d16d63d912a39a06f32f1f51140261; Linux 4.8
Fixed in: Linux 32ca3557d968e662957131374a5f81c9c9cdbba8, Linux 9f6f54e6a6863131442b40e14d1792b090c7ce21, Linux 2ac5415022d16d63d912a39a06f32f1f51140261

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-57795 being exploited?

There is no confirmed exploitation: CVE-2024-57795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-57795?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-57795?

Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 32ca3557d968e662957131374a5f81c9c9cdbba8; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 9f6f54e6a6863131442b40e14d1792b090c7ce21; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 2ac5415022d16d63d912a39a06f32f1f51140261; Linux 4.8.

### Is there a fix for CVE-2024-57795?

Yes. Fixed in Linux 32ca3557d968e662957131374a5f81c9c9cdbba8, Linux 9f6f54e6a6863131442b40e14d1792b090c7ce21, Linux 2ac5415022d16d63d912a39a06f32f1f51140261. Upgrade Linux to 2ac5415022d16d63d912a39a06f32f1f51140261 or later.

### How do I check if I'm affected by CVE-2024-57795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9f6f54e6a6863131442b40e14d1792b090c7ce21>
- patch: <https://git.kernel.org/stable/c/2ac5415022d16d63d912a39a06f32f1f51140261>
- other: <https://git.kernel.org/stable/c/32ca3557d968e662957131374a5f81c9c9cdbba8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-57795>

HTML: <https://flawdb.com/CVE-2024-57795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-57795>
