{"id":"CVE-2024-38595","published":"2024-06-19T13:45:45Z","modified":"2026-05-27T09:28:02Z","title":"net/mlx5: Fix peer devlink set for SF representor devlink port","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Fix peer devlink set for SF representor devlink port\n\nThe cited patch change register devlink flow, and neglect to reflect\nthe changes for peer devlink set logic. Peer devlink set is\ntriggering a call trace if done after devl_register.[1]\n\nHence, align peer devlink set logic with register devlink flow.\n\n[1]\nWARNING: CPU: 4 PID: 3394 at net/devlink/core.c:155 devlink_rel_nested_in_add+0x177/0x180\nCPU: 4 PID: 3394 Comm: kworker/u40:1 Not tainted 6.9.0-rc4_for_linust_min_debug_2024_04_16_14_08 #1\nHardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014\nWorkqueue: mlx5_vhca_event0 mlx5_vhca_state_work_handler [mlx5_core]\nRIP: 0010:devlink_rel_nested_in_add+0x177/0x180\nCall Trace:\n <TASK>\n ? __warn+0x78/0x120\n ? devlink_rel_nested_in_add+0x177/0x180\n ? report_bug+0x16d/0x180\n ? handle_bug+0x3c/0x60\n ? exc_invalid_op+0x14/0x70\n ? asm_exc_invalid_op+0x16/0x20\n ? devlink_port_init+0x30/0x30\n ? devlink_port_type_clear+0x50/0x50\n ? devlink_rel_nested_in_add+0x177/0x180\n ? devlink_rel_nested_in_add+0xdd/0x180\n mlx5_sf_mdev_event+0x74/0xb0 [mlx5_core]\n notifier_call_chain+0x35/0xb0\n blocking_notifier_call_chain+0x3d/0x60\n mlx5_blocking_notifier_call_chain+0x22/0x30 [mlx5_core]\n mlx5_sf_dev_probe+0x185/0x3e0 [mlx5_core]\n auxiliary_bus_probe+0x38/0x80\n ? driver_sysfs_add+0x51/0x80\n really_probe+0xc5/0x3a0\n ? driver_probe_device+0x90/0x90\n __driver_probe_device+0x80/0x160\n driver_probe_device+0x1e/0x90\n __device_attach_driver+0x7d/0x100\n bus_for_each_drv+0x80/0xd0\n __device_attach+0xbc/0x1f0\n bus_probe_device+0x86/0xa0\n device_add+0x64f/0x860\n __auxiliary_device_add+0x3b/0xa0\n mlx5_sf_dev_add+0x139/0x330 [mlx5_core]\n mlx5_sf_dev_state_change_handler+0x1e4/0x250 [mlx5_core]\n notifier_call_chain+0x35/0xb0\n blocking_notifier_call_chain+0x3d/0x60\n mlx5_vhca_state_work_handler+0x151/0x200 [mlx5_core]\n process_one_work+0x13f/0x2e0\n worker_thread+0x2bd/0x3c0\n ? rescuer_thread+0x410/0x410\n kthread+0xc4/0xf0\n ? kthread_complete_and_exit+0x20/0x20\n ret_from_fork+0x2d/0x50\n ? kthread_complete_and_exit+0x20/0x20\n ret_from_fork_asm+0x11/0x20\n </TASK>","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0021,"percentile":0.11363,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a0501201751034ebe7a22bd9483ed28fea1cd213","tags":[]},{"url":"https://git.kernel.org/stable/c/05d9d7b66836d87c914f8fdd4b062b78e373458d","tags":[]},{"url":"https://git.kernel.org/stable/c/3c453e8cc672de1f9c662948dba43176bc68d7f0","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.27}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 967caa3d37c078e5b95a32094657e6a4cad145f0, < a0501201751034ebe7a22bd9483ed28fea1cd213",">= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 05d9d7b66836d87c914f8fdd4b062b78e373458d",">= c6e77aa9dd82bc18a89bf49418f8f7e961cfccc8, < 3c453e8cc672de1f9c662948dba43176bc68d7f0","8c91c60858473731bcdaf04fda99fcbcf84420d4","8256c1211dc6fa606269aa043b6e294247820b31",">= 6.8.7, < 6.8.12",">= 6.6.28, < 6.7"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:13:40.656790Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37458","exploited":false,"provenance":"source"}}