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

Published Sep 11, 2024
·
Updated

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 downread+0x75/0x94 Modules linked in: esp4offload esp4 actmirred actvlan clsflower schingress mlx5vdpa vringh vhostiotlb vdpa mstpciconf(OE) nfsv3 nfsacl nfs lockd grace fscache netfs xtCHECKSUM xtMASQUERADE xtconntrack iptREJECT nfrejectipv4 nftcompat nftcounter nftchainnat nfnat nfconntrack nfdefragipv6 nfdefragipv4 rfkill cuse fuse rpcrdma sunrpc rdmaucm ibsrpt ibisert iscsitargetmod targetcoremod ibumad ibiser libiscsi scsitransportiscsi rdmacm ibipoib iwcm ibcm ipmissif intelraplmsr intelraplcommon amd64edac edacmceamd kvmamd kvm irqbypass crct10difpclmul crc32pclmul mlx5ib ghashclmulniintel sha1ssse3 dellsmbios ibuverbs aesniintel cryptosimd dcdbas wmibmof dellwmidescriptor cryptd pcspkr ibcore acpiipmi sp5100tco ccp i2cpiix4 ipmisi ptdma k10temp ipmidevintf ipmimsghandler acpipowermeter acpicpufreq ext4 mbcache jbd2 sdmod t10pi sg mgag200 drmkmshelper syscopyarea sysfillrect mlx5core sysimgblt fbsysfops cec ahci libahci mlxfw drm pcihypervintf libata tg3 sha256ssse3 tls megaraidsas i2calgobit psample wmi dmmirror dmregionhash dmlog dmmod [last unloaded: mstpci] CPU: 44 PID: 16136 Comm: kworker/44:3 Kdump: loaded Tainted: GOE 5.15.0-20240509.el8uek.uek7u3updatev6.6ipsecbf.x8664 #2 Hardware name: Dell Inc. PowerEdge R7525/074H08, BIOS 2.0.3 01/15/2021 Workqueue: events xfrmstategctask RIP: 0010:downread+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> ? showtraceloglvl+0x1d6/0x2f9 ? showtraceloglvl+0x1d6/0x2f9 ? mlx5devcomforeachpeerbegin+0x29/0x60 [mlx5core] ? downread+0x75/0x94 ? warn+0x80/0x113 ? downread+0x75/0x94 ? reportbug+0xa4/0x11d ? handlebug+0x35/0x8b ? excinvalidop+0x14/0x75 ? asmexcinvalidop+0x16/0x1b ? downread+0x75/0x94 ? downread+0xe/0x94 mlx5devcomforeachpeerbegin+0x29/0x60 [mlx5core] mlx5ipsecfsrocetxdestroy+0xb1/0x130 [mlx5core] txdestroy+0x1b/0xc0 [mlx5core] txftput+0x53/0xc0 [mlx5core] mlx5exfrmfreestate+0x45/0x90 [mlx5core] xfrmstatedestroy+0x10f/0x1a2 xfrmstategctask+0x81/0xa9 processonework+0x1f1/0x3c6 workerthread+0x53/0x3e4 ? processonework.cold+0x46/0x3c kthread+0x127/0x144 ? setkthreadstruct+0x60/0x52 retfromfork+0x22/0x2d </TASK> ---[ end trace 5ef7896144d398e1 ]---

Affected Software

6 affected componentsFixes available
Linux Linux kernel>=6.7<6.10.7
Linux Linux kernel=6.11-rc1
Linux Linux kernel=6.11-rc2
Linux Linux kernel=6.11-rc3
Linux Linux kernel=6.11-rc4
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  2. Upgrade

    Upgrade Linux kernel (net/mlx5) to a version that resolves this vulnerability.

    Patch net/mlx5: Fix IPsec RoCE MPV trace call

Event History

Sep 11, 2024
CVE Published
via MITRE·03:13 PM
Data Sourced
via MITRE·03:13 PM
DescriptionSeverity
Rejected
via NVD·04:15 PM
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityAffected Software
Sep 13, 2024
Rejected
via NVD·04:36 PM
Jan 13, 2025
Data Sourced
via Ubuntu·06:30 PM
RemedyDescriptionSeverityAffected Software
Aug 4, 2026
Rejected
via NVD·11:20 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-45017?

CVE-2024-45017 has a moderate severity rating as it concerns IPsec functionality in the Linux kernel.

2

How do I fix CVE-2024-45017?

To resolve CVE-2024-45017, update to a patched version of the Linux kernel such as those provided in version 5.10.223-1 or later.

3

Which Linux kernel versions are affected by CVE-2024-45017?

CVE-2024-45017 affects Linux kernel versions from 6.7 up to 6.10.7 and specific release candidates of 6.11.

4

What types of configurations can be impacted by CVE-2024-45017?

CVE-2024-45017 can impact configurations that involve IPsec creation over slave devices without proper master device support.

5

Is CVE-2024-45017 related to networking issues?

Yes, CVE-2024-45017 specifically addresses issues related to IPsec and RoCE MPV trace calls within networking in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203