# CVE-2024-45017: net/mlx5: Fix IPsec RoCE MPV trace call

> 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.29% (percentile 14, 2026-11-26)
- **Published:** 2024-09-11T15:13:52.675Z
- **Modified:** 2026-08-05T11:37:42.723Z

## Who should check

- Anyone running Linux \>= dfbd229abeee76a0bcf015e93c85dca8d18568d4, \< 2ae52a65a850ded75a94e8d7ec1e09737f4c6509; \>= dfbd229abeee76a0bcf015e93c85dca8d18568d4, \< 607e1df7bd47fe91cab85a97f57870a26d066137
- Anyone running Linux 6.7

## Description

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

net/mlx5: Fix IPsec RoCE MPV trace call

Prevent the call trace below from happening, by not allowing IPsec
creation over a slave, if master device doesn't support IPsec.

WARNING: CPU: 44 PID: 16136 at kernel/locking/rwsem.c:240 down\_read+0x75/0x94
Modules linked in: esp4\_offload esp4 act\_mirred act\_vlan cls\_flower sch\_ingress mlx5\_vdpa vringh vhost\_iotlb vdpa mst\_pciconf(OE) nfsv3 nfs\_acl nfs lockd grace fscache netfs xt\_CHECKSUM xt\_MASQUERADE xt\_conntrack ipt\_REJECT nf\_reject\_ipv4 nft\_compat nft\_counter nft\_chain\_nat nf\_nat nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 rfkill cuse fuse rpcrdma sunrpc rdma\_ucm ib\_srpt ib\_isert iscsi\_target\_mod target\_core\_mod ib\_umad ib\_iser libiscsi scsi\_transport\_iscsi rdma\_cm ib\_ipoib iw\_cm ib\_cm ipmi\_ssif intel\_rapl\_msr intel\_rapl\_common amd64\_edac edac\_mce\_amd kvm\_amd kvm irqbypass crct10dif\_pclmul crc32\_pclmul mlx5\_ib ghash\_clmulni\_intel sha1\_ssse3 dell\_smbios ib\_uverbs aesni\_intel crypto\_simd dcdbas wmi\_bmof dell\_wmi\_descriptor cryptd pcspkr ib\_core acpi\_ipmi sp5100\_tco ccp i2c\_piix4 ipmi\_si ptdma k10temp ipmi\_devintf ipmi\_msghandler acpi\_power\_meter acpi\_cpufreq ext4 mbcache jbd2 sd\_mod t10\_pi sg mgag200 drm\_kms\_helper syscopyarea sysfillrect mlx5\_core sysimgblt fb\_sys\_fops cec
 ahci libahci mlxfw drm pci\_hyperv\_intf libata tg3 sha256\_ssse3 tls megaraid\_sas i2c\_algo\_bit psample wmi dm\_mirror dm\_region\_hash dm\_log dm\_mod \[last unloaded: mst\_pci\]
CPU: 44 PID: 16136 Comm: kworker/44:3 Kdump: loaded Tainted: GOE 5.15.0-20240509.el8uek.uek7\_u3\_update\_v6.6\_ipsec\_bf.x86\_64 \#2
Hardware name: Dell Inc. PowerEdge R7525/074H08, BIOS 2.0.3 01/15/2021
Workqueue: events xfrm\_state\_gc\_task
RIP: 0010:down\_read+0x75/0x94
Code: 00 48 8b 45 08 65 48 8b 14 25 80 fc 01 00 83 e0 02 48 09 d0 48 83 c8 01 48 89 45 08 5d 31 c0 89 c2 89 c6 89 c7 e9 cb 88 3b 00 \<0f\> 0b 48 8b 45 08 a8 01 74 b2 a8 02 75 ae 48 89 c2 48 83 ca 02 f0
RSP: 0018:ffffb26387773da8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffa08b658af900 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ff886bc5e1366f2f RDI: 0000000000000000
RBP: ffffa08b658af940 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffa0a9bfb31540
R13: ffffa0a9bfb37900 R14: 0000000000000000 R15: ffffa0a9bfb37905
FS:  0000000000000000(0000) GS:ffffa0a9bfb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a45ed814e8 CR3: 000000109038a000 CR4: 0000000000350ee0
Call Trace:
 \<TASK\>
 ? show\_trace\_log\_lvl+0x1d6/0x2f9
 ? show\_trace\_log\_lvl+0x1d6/0x2f9
 ? mlx5\_devcom\_for\_each\_peer\_begin+0x29/0x60 \[mlx5\_core\]
 ? down\_read+0x75/0x94
 ? \_\_warn+0x80/0x113
 ? down\_read+0x75/0x94
 ? report\_bug+0xa4/0x11d
 ? handle\_bug+0x35/0x8b
 ? exc\_invalid\_op+0x14/0x75
 ? asm\_exc\_invalid\_op+0x16/0x1b
 ? down\_read+0x75/0x94
 ? down\_read+0xe/0x94
 mlx5\_devcom\_for\_each\_peer\_begin+0x29/0x60 \[mlx5\_core\]
 mlx5\_ipsec\_fs\_roce\_tx\_destroy+0xb1/0x130 \[mlx5\_core\]
 tx\_destroy+0x1b/0xc0 \[mlx5\_core\]
 tx\_ft\_put+0x53/0xc0 \[mlx5\_core\]
 mlx5e\_xfrm\_free\_state+0x45/0x90 \[mlx5\_core\]
 \_\_\_xfrm\_state\_destroy+0x10f/0x1a2
 xfrm\_state\_gc\_task+0x81/0xa9
 process\_one\_work+0x1f1/0x3c6
 worker\_thread+0x53/0x3e4
 ? process\_one\_work.cold+0x46/0x3c
 kthread+0x127/0x144
 ? set\_kthread\_struct+0x60/0x52
 ret\_from\_fork+0x22/0x2d
 \</TASK\>
---\[ end trace 5ef7896144d398e1 \]---

## Affected and fixed versions

- Linux: \>= dfbd229abeee76a0bcf015e93c85dca8d18568d4, \< 2ae52a65a850ded75a94e8d7ec1e09737f4c6509; \>= dfbd229abeee76a0bcf015e93c85dca8d18568d4, \< 607e1df7bd47fe91cab85a97f57870a26d066137 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 607e1df7bd47fe91cab85a97f57870a26d066137 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-45017. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45017.md
Affected: Linux >= dfbd229abeee76a0bcf015e93c85dca8d18568d4, < 2ae52a65a850ded75a94e8d7ec1e09737f4c6509; >= dfbd229abeee76a0bcf015e93c85dca8d18568d4, < 607e1df7bd47fe91cab85a97f57870a26d066137; Linux 6.7
Fixed in: Linux 2ae52a65a850ded75a94e8d7ec1e09737f4c6509, Linux 607e1df7bd47fe91cab85a97f57870a26d066137

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-45017 being exploited?

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

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

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

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

Linux \>= dfbd229abeee76a0bcf015e93c85dca8d18568d4, \< 2ae52a65a850ded75a94e8d7ec1e09737f4c6509; \>= dfbd229abeee76a0bcf015e93c85dca8d18568d4, \< 607e1df7bd47fe91cab85a97f57870a26d066137; Linux 6.7.

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

Yes. Fixed in Linux 2ae52a65a850ded75a94e8d7ec1e09737f4c6509, Linux 607e1df7bd47fe91cab85a97f57870a26d066137. Upgrade Linux to 607e1df7bd47fe91cab85a97f57870a26d066137 or later.

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

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/2ae52a65a850ded75a94e8d7ec1e09737f4c6509>
- patch: <https://git.kernel.org/stable/c/607e1df7bd47fe91cab85a97f57870a26d066137>

## 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-45017>

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