# CVE-2026-43455: mctp: route: hold key->lock in mctp_flow_prepare_output()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-08T14:22:19.375Z
- Modified: 2026-11-11T20:10:00.273Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 67737c457281dd199ceb9e31b6ba7efd3bfe566d before 47893166bc5611ee9a20de6b8d2933b2320fb772; from 67737c457281dd199ceb9e31b6ba7efd3bfe566d before 86f5334fcb48a5b611c33364ab52ca684d0f6d91; from 67737c457281dd199ceb9e31b6ba7efd3bfe566d before 0695712f3a6f1a48915f95767cfb42077683dcdc; from 67737c457281dd199ceb9e31b6ba7efd3bfe566d before 925a5ffd99cddd7a7e41d5ad120c7a2c6d50260f; from 67737c457281dd199ceb9e31b6ba7efd3bfe566d before 8d27d9b260dd19c1b519e1a13de6448f9984e30e; from 67737c457281dd199ceb9e31b6ba7efd3bfe566d before 7d86aa41c073c4e7eb75fd2e674f1fd8f289728a; 5.16 (not affected: before 5.16; from 6.1.167 up to 6.1.*; from 6.6.130 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.18.19 up to 6.18.*; from 6.19.9 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.16 before 6.1.167; from 6.2 before 6.6.130; from 6.7 before 6.12.78; from 6.13 before 6.18.19; from 6.19 before 6.19.9; 7.0

## References

- <https://git.kernel.org/stable/c/47893166bc5611ee9a20de6b8d2933b2320fb772> (patch)
- <https://git.kernel.org/stable/c/86f5334fcb48a5b611c33364ab52ca684d0f6d91> (patch)
- <https://git.kernel.org/stable/c/0695712f3a6f1a48915f95767cfb42077683dcdc> (patch)
- <https://git.kernel.org/stable/c/925a5ffd99cddd7a7e41d5ad120c7a2c6d50260f> (patch)
- <https://git.kernel.org/stable/c/8d27d9b260dd19c1b519e1a13de6448f9984e30e> (patch)
- <https://git.kernel.org/stable/c/7d86aa41c073c4e7eb75fd2e674f1fd8f289728a> (patch)

## Sources

- CVE List: [CVE-2026-43455](https://www.cve.org/CVERecord?id=CVE-2026-43455), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-43455](https://nvd.nist.gov/vuln/detail/CVE-2026-43455), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43455 · Whole record: https://cve.day/CVE-2026-43455.json · Rebuilt by cve.day 2026-11-25T22:59:21.078Z
