Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-38595

MEDIUM 5.5EPSS 16%

net/mlx5: Fix peer devlink set for SF representor devlink port

Mitigation

  • Upgrade Linux to 6.7 or later.

Who should check

  • Anyone running Linux >= 967caa3d37c078e5b95a32094657e6a4cad145f0, < a0501201751034ebe7a22bd9483ed28fea1cd213; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 05d9d7b66836d87c914f8fdd4b062b78e373458d; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 3c453e8cc672de1f9c662948dba43176bc68d7f0; 8c91c60858473731bcdaf04fda99fcbcf84420d4; 8256c1211dc6fa606269aa043b6e294247820b31; >= 6.8.7, < 6.8.12; >= 6.6.28, < 6.7
  • Anyone running Linux 6.9

Vulnerability facts

Affected
Linux >= 967caa3d37c078e5b95a32094657e6a4cad145f0, < a0501201751034ebe7a22bd9483ed28fea1cd213; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 05d9d7b66836d87c914f8fdd4b062b78e373458d; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 3c453e8cc672de1f9c662948dba43176bc68d7f0; 8c91c60858473731bcdaf04fda99fcbcf84420d4; 8256c1211dc6fa606269aa043b6e294247820b31; >= 6.8.7, < 6.8.12; >= 6.6.28, < 6.7; Linux 6.9
Fixed in
Linux 05d9d7b66836d87c914f8fdd4b062b78e373458d, Linux 3c453e8cc672de1f9c662948dba43176bc68d7f0, Linux 6.8.12, Linux 6.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Fix peer devlink set for SF representor devlink port The cited patch change register devlink flow, and neglect to reflect the changes for peer devlink set logic. Peer devlink set is triggering a call trace if done after devl_register.[1] Hence, align peer devlink set logic with register devlink flow. [1] WARNING: CPU: 4 PID: 3394 at net/devlink/core.c:155 devlink_rel_nested_in_add+0x177/0x180 CPU: 4 PID: 3394 Comm: kworker/u40:1 Not tainted 6.9.0-rc4_for_linust_min_debug_2024_04_16_14_08 #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014 Workqueue: mlx5_vhca_event0 mlx5_vhca_state_work_handler [mlx5_core] RIP: 0010:devlink_rel_nested_in_add+0x177/0x180 Call Trace: <TASK> ? __warn+0x78/0x120 ? devlink_rel_nested_in_add+0x177/0x180 ? report_bug+0x16d/0x180 ? handle_bug+0x3c/0x60 ? exc_invalid_op+0x14/0x70 ? asm_exc_invalid_op+0x16/0x20 ? devlink_port_init+0x30/0x30 ? devlink_port_type_clear+0x50/0x50 ? devlink_rel_nested_in_add+0x177/0x180 ? devlink_rel_nested_in_add+0xdd/0x180 mlx5_sf_mdev_event+0x74/0xb0 [mlx5_core] notifier_call_chain+0x35/0xb0 blocking_notifier_call_chain+0x3d/0x60 mlx5_blocking_notifier_call_chain+0x22/0x30 [mlx5_core] mlx5_sf_dev_probe+0x185/0x3e0 [mlx5_core] auxiliary_bus_probe+0x38/0x80 ? driver_sysfs_add+0x51/0x80 really_probe+0xc5/0x3a0 ? driver_probe_device+0x90/0x90 __driver_probe_device+0x80/0x160 driver_probe_device+0x1e/0x90 __device_attach_driver+0x7d/0x100 bus_for_each_drv+0x80/0xd0 __device_attach+0xbc/0x1f0 bus_probe_device+0x86/0xa0 device_add+0x64f/0x860 __auxiliary_device_add+0x3b/0xa0 mlx5_sf_dev_add+0x139/0x330 [mlx5_core] mlx5_sf_dev_state_change_handler+0x1e4/0x250 [mlx5_core] notifier_call_chain+0x35/0xb0 blocking_notifier_call_chain+0x3d/0x60 mlx5_vhca_state_work_handler+0x151/0x200 [mlx5_core] process_one_work+0x13f/0x2e0 worker_thread+0x2bd/0x3c0 ? rescuer_thread+0x410/0x410 kthread+0xc4/0xf0 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork+0x2d/0x50 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork_asm+0x11/0x20 </TASK>

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 967caa3d37c078e5b95a32094657e6a4cad145f0, < a0501201751034ebe7a22bd9483ed28fea1cd213; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 05d9d7b66836d87c914f8fdd4b062b78e373458d; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 3c453e8cc672de1f9c662948dba43176bc68d7f0; 8c91c60858473731bcdaf04fda99fcbcf84420d4; 8256c1211dc6fa606269aa043b6e294247820b31; >= 6.8.7, < 6.8.12; >= 6.6.28, < 6.7—cvelist
Linux6.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2024-38595.md
Affected: Linux >= 967caa3d37c078e5b95a32094657e6a4cad145f0, < a0501201751034ebe7a22bd9483ed28fea1cd213; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 05d9d7b66836d87c914f8fdd4b062b78e373458d; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 3c453e8cc672de1f9c662948dba43176bc68d7f0; 8c91c60858473731bcdaf04fda…
Fixed in: Linux 05d9d7b66836d87c914f8fdd4b062b78e373458d, Linux 3c453e8cc672de1f9c662948dba43176bc68d7f0, Linux 6.8.12, Linux 6.7

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.

References

FAQ

Is CVE-2024-38595 being exploited?

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

How serious is CVE-2024-38595?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-38595?

Linux >= 967caa3d37c078e5b95a32094657e6a4cad145f0, < a0501201751034ebe7a22bd9483ed28fea1cd213; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 05d9d7b66836d87c914f8fdd4b062b78e373458d; >= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 3c453e8cc672de1f9c662948dba43176bc68d7f0; 8c91c60858473731bcdaf04fda99fcbcf84420d4; 8256c1211dc6fa606269aa043b6e294247820b31; >= 6.8.7, < 6.8.12; >= 6.6.28, < 6.7; Linux 6.9.

Is there a fix for CVE-2024-38595?

Yes. Fixed in Linux 05d9d7b66836d87c914f8fdd4b062b78e373458d, Linux 3c453e8cc672de1f9c662948dba43176bc68d7f0, Linux 6.8.12, Linux 6.7. Upgrade Linux to 6.7 or later.

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

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.

Sponsors