CVE-2026-43455

MEDIUM

mctp: route: hold key->lock in mctp_flow_prepare_output()

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: mctp: route: hold key->lock in mctp_flow_prepare_output() mctp_flow_prepare_output() checks key->dev and may call mctp_dev_set_key(), but it does not hold key->lock while doing so. mctp_dev_set_key() and mctp_dev_release_key() are annotated with __must_hold(&key->lock), so key->dev access is intended to be serialized by key->lock. The mctp_sendmsg() transmit path reaches mctp_flow_prepare_output() via mctp_local_output() -> mctp_dst_output() without holding key->lock, so the check-and-set sequence is racy. Example interleaving: CPU0 CPU1 ---- ---- mctp_flow_prepare_output(key, devA) if (!key->dev) // sees NULL mctp_flow_prepare_output( key, devB) if (!key->dev) // still NULL mctp_dev_set_key(devB, key) mctp_dev_hold(devB) key->dev = devB mctp_dev_set_key(devA, key) mctp_dev_hold(devA) key->dev = devA // overwrites devB Now both devA and devB references were acquired, but only the final key->dev value is tracked for release. One reference can be lost, causing a resource leak as mctp_dev_release_key() would only decrease the reference on one dev. Fix by taking key->lock around the key->dev check and mctp_dev_set_key() call.

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 2.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (16)
Linux/Linux < 5.16
Linux/Linux 5.16
Linux/Linux 6.1.167 - 6.1.*
Linux/Linux 6.12.78 - 6.12.*
Linux/Linux 6.18.19 - 6.18.*
Linux/Linux 6.19.9 - 6.19.*
Linux/Linux 6.6.130 - 6.6.*
Linux/Linux 67737c457281dd199ceb9e31b6ba7efd3bfe566d - 0695712f3a6f1a48915f95767cfb42077683dcdc
Linux/Linux 67737c457281dd199ceb9e31b6ba7efd3bfe566d - 47893166bc5611ee9a20de6b8d2933b2320fb772
Linux/Linux 67737c457281dd199ceb9e31b6ba7efd3bfe566d - 7d86aa41c073c4e7eb75fd2e674f1fd8f289728a
... and 6 more
Published May 08, 2026
Tracked Since May 08, 2026