{"id":"CVE-2026-98015","aliases":["CVE-2026-98015"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put\n\nIn mlx5_eswitch_termtbl_put(), the zero-ref cleanup check reads\ntt->ref_count after termtbl_mutex has been released.  Two concurrent\ncallers on the same mlx5_termtbl_handle race: one decrements ref_count\nto zero, removes the hash entry, and calls kfree(tt) while the other\nhas already dropped the mutex and is about to evaluate\nif (!tt->ref_count), producing a use-after-free.\n\nFix this by capturing the result of the decrement into a stack-local\nlast variable before dropping the mutex.  The cleanup decision is now\nmade entirely under termtbl_mutex, and tt is not touched after\nkfree.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put\n\nIn mlx5_eswitch_termtbl_put(), the zero-ref cleanup check reads\ntt->ref_count after termtbl_mutex has been released.  Two concurrent\ncallers on the same mlx5_termtbl_handle race: one decrements ref_count\nto zero, removes the hash entry, and calls kfree(tt) while the other\nhas already dropped the mutex and is about to evaluate\nif (!tt->ref_count), producing a use-after-free.\n\nFix this by capturing the result of the decrement into a stack-local\nlast variable before dropping the mutex.  The cleanup decision is now\nmade entirely under termtbl_mutex, and tt is not touched after\nkfree.","source":"cvelist"}],"published":"2026-09-25T10:23:37.724Z","modified":"2026-10-19T10:17:55.007Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"e3ee194a790896fa92fea20b5385a354be2f2c12","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"92f581cac93a71723456ac79ef54d9f60a251b42","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"a5833fdf53350b8b95a558fcf0056ddb1c0fe154","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"304ea40ef4561671503c36e47da44a0a31b71e36","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"e393789e92310d7c66f57c876101779c90816a12","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"18b2969073879b9cce24e1a78b118bdad54518d1","status":"affected"},{"type":"git","introduced":"10caabdaad5ace85577a453da97d1f8d3b944427","fixed":"7ee07f601f8f507c9faf25c68a49396ab8950596","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e3ee194a790896fa92fea20b5385a354be2f2c12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92f581cac93a71723456ac79ef54d9f60a251b42","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5833fdf53350b8b95a558fcf0056ddb1c0fe154","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/304ea40ef4561671503c36e47da44a0a31b71e36","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e393789e92310d7c66f57c876101779c90816a12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/18b2969073879b9cce24e1a78b118bdad54518d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ee07f601f8f507c9faf25c68a49396ab8950596","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98015","url":"https://www.cve.org/CVERecord?id=CVE-2026-98015","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:20.637Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98015","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98015","licence":"Public domain","modified":"2026-10-19T10:17:55.007Z"}],"updatedAt":"2026-11-25T22:59:41.024Z","epss":{"score":0.00177,"percentile":0.07552,"date":"2026-12-01T12:00:22.000Z"}}