CVE-2026-43455

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

State
Published
Severity
Not scored
Published
May 8, 2026
Updated
May 11, 2026
Reserved
May 1, 2026

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 67737c457281dd199ceb9e31b6ba7efd3bfe566d to before 47893166bc5611ee9a20de6b8d2933b2320fb772Affected
  • 67737c457281dd199ceb9e31b6ba7efd3bfe566d to before 86f5334fcb48a5b611c33364ab52ca684d0f6d91Affected
  • 67737c457281dd199ceb9e31b6ba7efd3bfe566d to before 0695712f3a6f1a48915f95767cfb42077683dcdcAffected
  • 67737c457281dd199ceb9e31b6ba7efd3bfe566d to before 925a5ffd99cddd7a7e41d5ad120c7a2c6d50260fAffected
  • 67737c457281dd199ceb9e31b6ba7efd3bfe566d to before 8d27d9b260dd19c1b519e1a13de6448f9984e30eAffected
  • 67737c457281dd199ceb9e31b6ba7efd3bfe566d to before 7d86aa41c073c4e7eb75fd2e674f1fd8f289728aAffected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 6.1.167 through 6.1.*Not affected
  • 6.6.130 through 6.6.*Not affected
  • 6.12.78 through 6.12.*Not affected
  • 6.18.19 through 6.18.*Not affected
  • 6.19.9 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.