{"id":"CVE-2026-43455","aliases":["CVE-2026-43455"],"related":[],"kind":"vulnerability","state":"published","title":"mctp: route: hold key->lock in mctp_flow_prepare_output()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmctp: route: hold key->lock in mctp_flow_prepare_output()\n\nmctp_flow_prepare_output() checks key->dev and may call\nmctp_dev_set_key(), but it does not hold key->lock while doing so.\n\nmctp_dev_set_key() and mctp_dev_release_key() are annotated with\n__must_hold(&key->lock), so key->dev access is intended to be\nserialized by key->lock. The mctp_sendmsg() transmit path reaches\nmctp_flow_prepare_output() via mctp_local_output() -> mctp_dst_output()\nwithout holding key->lock, so the check-and-set sequence is racy.\n\nExample interleaving:\n\n  CPU0                                  CPU1\n  ----                                  ----\n  mctp_flow_prepare_output(key, devA)\n    if (!key->dev)  // sees NULL\n                                        mctp_flow_prepare_output(\n                                            key, devB)\n                                          if (!key->dev)  // still NULL\n                                          mctp_dev_set_key(devB, key)\n                                            mctp_dev_hold(devB)\n                                            key->dev = devB\n    mctp_dev_set_key(devA, key)\n      mctp_dev_hold(devA)\n      key->dev = devA   // overwrites devB\n\nNow both devA and devB references were acquired, but only the final\nkey->dev value is tracked for release. One reference can be lost,\ncausing a resource leak as mctp_dev_release_key() would only decrease\nthe reference on one dev.\n\nFix by taking key->lock around the key->dev check and\nmctp_dev_set_key() call.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmctp: route: hold key->lock in mctp_flow_prepare_output()\n\nmctp_flow_prepare_output() checks key->dev and may call\nmctp_dev_set_key(), but it does not hold key->lock while doing so.\n\nmctp_dev_set_key() and mctp_dev_release_key() are annotated with\n__must_hold(&key->lock), so key->dev access is intended to be\nserialized by key->lock. The mctp_sendmsg() transmit path reaches\nmctp_flow_prepare_output() via mctp_local_output() -> mctp_dst_output()\nwithout holding key->lock, so the check-and-set sequence is racy.\n\nExample interleaving:\n\n  CPU0                                  CPU1\n  ----                                  ----\n  mctp_flow_prepare_output(key, devA)\n    if (!key->dev)  // sees NULL\n                                        mctp_flow_prepare_output(\n                                            key, devB)\n                                          if (!key->dev)  // still NULL\n                                          mctp_dev_set_key(devB, key)\n                                            mctp_dev_hold(devB)\n                                            key->dev = devB\n    mctp_dev_set_key(devA, key)\n      mctp_dev_hold(devA)\n      key->dev = devA   // overwrites devB\n\nNow both devA and devB references were acquired, but only the final\nkey->dev value is tracked for release. One reference can be lost,\ncausing a resource leak as mctp_dev_release_key() would only decrease\nthe reference on one dev.\n\nFix by taking key->lock around the key->dev check and\nmctp_dev_set_key() call.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmctp: route: mantener key  ->  lock en mctp_flow_prepare_output()\n\nmctp_flow_prepare_output() comprueba key  ->  dev y puede llamar a mctp_dev_set_key(), pero no mantiene key  ->  lock mientras lo hace.\n\nmctp_dev_set_key() y mctp_dev_release_key() están anotadas con __must_hold(&key  ->  lock), por lo que el acceso a key  ->  dev está destinado a ser serializado por key  ->  lock. La ruta de transmisión de mctp_sendmsg() alcanza mctp_flow_prepare_output() a través de mctp_local_output()   ->   mctp_dst_output() sin mantener key  ->  lock, por lo que la secuencia de comprobación y establecimiento es propensa a condiciones de carrera.\n\nEjemplo de entrelazado:\n\n  CPU0                                  CPU1\n  ----                                  ----\n  mctp_flow_prepare_output(key, devA)\n    if (!key  ->  dev)  // ve NULL\n                                        mctp_flow_prepare_output(\n                                            key, devB)\n                                          if (!key  ->  dev)  // todavía NULL\n                                          mctp_dev_set_key(devB, key)\n                                            mctp_dev_hold(devB)\n                                            key  ->  dev = devB\n    mctp_dev_set_key(devA, key)\n      mctp_dev_hold(devA)\n      key  ->  dev = devA   // sobrescribe devB\n\nAhora se adquirieron ambas referencias de devA y devB, pero solo el valor final de key  ->  dev es rastreado para su liberación. Se puede perder una referencia, causando una fuga de recursos ya que mctp_dev_release_key() solo disminuiría la referencia en un dev.\n\nSolución al tomar key  ->  lock alrededor de la comprobación de key  ->  dev y la llamada a mctp_dev_set_key().","source":"nvd"}],"published":"2026-05-08T14:22:19.375Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"67737c457281dd199ceb9e31b6ba7efd3bfe566d","fixed":"47893166bc5611ee9a20de6b8d2933b2320fb772","status":"affected"},{"type":"git","introduced":"67737c457281dd199ceb9e31b6ba7efd3bfe566d","fixed":"86f5334fcb48a5b611c33364ab52ca684d0f6d91","status":"affected"},{"type":"git","introduced":"67737c457281dd199ceb9e31b6ba7efd3bfe566d","fixed":"0695712f3a6f1a48915f95767cfb42077683dcdc","status":"affected"},{"type":"git","introduced":"67737c457281dd199ceb9e31b6ba7efd3bfe566d","fixed":"925a5ffd99cddd7a7e41d5ad120c7a2c6d50260f","status":"affected"},{"type":"git","introduced":"67737c457281dd199ceb9e31b6ba7efd3bfe566d","fixed":"8d27d9b260dd19c1b519e1a13de6448f9984e30e","status":"affected"},{"type":"git","introduced":"67737c457281dd199ceb9e31b6ba7efd3bfe566d","fixed":"7d86aa41c073c4e7eb75fd2e674f1fd8f289728a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.19","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.16","fixed":"6.1.167"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.19"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/47893166bc5611ee9a20de6b8d2933b2320fb772","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86f5334fcb48a5b611c33364ab52ca684d0f6d91","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0695712f3a6f1a48915f95767cfb42077683dcdc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/925a5ffd99cddd7a7e41d5ad120c7a2c6d50260f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d27d9b260dd19c1b519e1a13de6448f9984e30e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d86aa41c073c4e7eb75fd2e674f1fd8f289728a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43455","url":"https://www.cve.org/CVERecord?id=CVE-2026-43455","licence":"CVE Terms of Use","modified":"2026-05-11T22:24:55.256Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43455","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43455","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.078Z","epss":{"score":0.00114,"percentile":0.01643,"date":"2026-12-01T12:00:22.000Z"}}