{"id":"CVE-2026-139189","state":"PUBLISHED","title":"net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: taprio: unwind the netdevice notifier if register_qdisc() fails\n\ntaprio_module_init() registers taprio_device_notifier and then returns\nregister_qdisc()'s error directly.  When register_qdisc() fails the\nnotifier stays registered, but the loader's failure path frees the module\nimage without ever calling the __exit function, so netdev_chain is left\npointing at taprio_device_notifier.notifier_call -- a function pointer\nthat lives in text that has just been freed.\n\nregister_qdisc() has two failure returns: -EEXIST (duplicate .id) and\n-EINVAL (malformed cl_ops).  taprio_class_ops satisfies every checked\nimplication, so -EINVAL is unreachable and -EEXIST is the only reachable\nfailure; it needs a pre-existing \"taprio\" entry in qdisc_base.  In-tree\nthat is reachable only through bpf_qdisc_reg() (CONFIG_NET_SCH_BPF); a\nmodule calling the exported register_qdisc() reaches it as well.\n\nOnce the notifier is left dangling, the next netdevice event that walks\nnetdev_chain calls through the stale pointer:\n\n  BUG: KASAN: vmalloc-out-of-bounds in notifier_call_chain+0x650/0xb5c\n  Read of size 8 at addr ffff80001fc5ab08 by task ip/110\n   notifier_call_chain+0x650/0xb5c\n   raw_notifier_call_chain+0x34/0x64\n   call_netdevice_notifiers_info+0xa8/0x198\n   __dev_close_many+0xe0/0x800\n   ...\n  >ffff80001fc5ab00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8\n\nThe shadow row is all f8 (KASAN_VMALLOC_INVALID): the read lands in\nvmalloc memory that was poisoned when the module image was freed, and the\nindirect call is unguarded because the only check, func_ptr_is_kernel_text(),\nis compiled out unless CONFIG_DEBUG_NOTIFIERS.\n\nMirror the sibling sch_cbs.c and act_mirred.c, which unwind the notifier\non this failure path.","publishedAt":"2026-11-30T13:32:24.235Z","updatedAt":"2026-11-30T13:32:24.235Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"b3b15f7042b638438fe08890bc118f672eea4251","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"bab054f387740c00fbad378336995b8df59e08ad","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"84f588dc5abcd129dd05463559de442b6a83b76f","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"728e8a8b545fd84d695ce26470370fd1dd464990","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"66d981547d32382c8fba1a72c0858ae52b2a300a","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"14fa884713fa2abf57999242c79a4a4b21634652","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"ae0c55799795196a1ea157ca47868d7acc80a5c7","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"c5234f89d7cb311880ef218cb7a969794a106678","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_taprio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_taprio.c"]}],"references":["https://git.kernel.org/stable/c/b3b15f7042b638438fe08890bc118f672eea4251","https://git.kernel.org/stable/c/bab054f387740c00fbad378336995b8df59e08ad","https://git.kernel.org/stable/c/84f588dc5abcd129dd05463559de442b6a83b76f","https://git.kernel.org/stable/c/728e8a8b545fd84d695ce26470370fd1dd464990","https://git.kernel.org/stable/c/66d981547d32382c8fba1a72c0858ae52b2a300a","https://git.kernel.org/stable/c/14fa884713fa2abf57999242c79a4a4b21634652","https://git.kernel.org/stable/c/ae0c55799795196a1ea157ca47868d7acc80a5c7","https://git.kernel.org/stable/c/c5234f89d7cb311880ef218cb7a969794a106678"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139189.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139189","state":"PUBLISHED","datePublished":"2026-11-30T13:32:24.235Z","dateUpdated":"2026-11-30T13:32:24.235Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"net/sched: taprio: unwind the netdevice notifier if register_qdisc() fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: taprio: unwind the netdevice notifier if register_qdisc() fails\n\ntaprio_module_init() registers taprio_device_notifier and then returns\nregister_qdisc()'s error directly.  When register_qdisc() fails the\nnotifier stays registered, but the loader's failure path frees the module\nimage without ever calling the __exit function, so netdev_chain is left\npointing at taprio_device_notifier.notifier_call -- a function pointer\nthat lives in text that has just been freed.\n\nregister_qdisc() has two failure returns: -EEXIST (duplicate .id) and\n-EINVAL (malformed cl_ops).  taprio_class_ops satisfies every checked\nimplication, so -EINVAL is unreachable and -EEXIST is the only reachable\nfailure; it needs a pre-existing \"taprio\" entry in qdisc_base.  In-tree\nthat is reachable only through bpf_qdisc_reg() (CONFIG_NET_SCH_BPF); a\nmodule calling the exported register_qdisc() reaches it as well.\n\nOnce the notifier is left dangling, the next netdevice event that walks\nnetdev_chain calls through the stale pointer:\n\n  BUG: KASAN: vmalloc-out-of-bounds in notifier_call_chain+0x650/0xb5c\n  Read of size 8 at addr ffff80001fc5ab08 by task ip/110\n   notifier_call_chain+0x650/0xb5c\n   raw_notifier_call_chain+0x34/0x64\n   call_netdevice_notifiers_info+0xa8/0x198\n   __dev_close_many+0xe0/0x800\n   ...\n  >ffff80001fc5ab00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8\n\nThe shadow row is all f8 (KASAN_VMALLOC_INVALID): the read lands in\nvmalloc memory that was poisoned when the module image was freed, and the\nindirect call is unguarded because the only check, func_ptr_is_kernel_text(),\nis compiled out unless CONFIG_DEBUG_NOTIFIERS.\n\nMirror the sibling sch_cbs.c and act_mirred.c, which unwind the notifier\non this failure path."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"b3b15f7042b638438fe08890bc118f672eea4251","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"bab054f387740c00fbad378336995b8df59e08ad","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"84f588dc5abcd129dd05463559de442b6a83b76f","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"728e8a8b545fd84d695ce26470370fd1dd464990","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"66d981547d32382c8fba1a72c0858ae52b2a300a","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"14fa884713fa2abf57999242c79a4a4b21634652","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"ae0c55799795196a1ea157ca47868d7acc80a5c7","versionType":"git"},{"version":"7b9eba7ba0c1b24df42b70b62d154b284befbccf","status":"affected","lessThan":"c5234f89d7cb311880ef218cb7a969794a106678","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_taprio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_taprio.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b3b15f7042b638438fe08890bc118f672eea4251"},{"url":"https://git.kernel.org/stable/c/bab054f387740c00fbad378336995b8df59e08ad"},{"url":"https://git.kernel.org/stable/c/84f588dc5abcd129dd05463559de442b6a83b76f"},{"url":"https://git.kernel.org/stable/c/728e8a8b545fd84d695ce26470370fd1dd464990"},{"url":"https://git.kernel.org/stable/c/66d981547d32382c8fba1a72c0858ae52b2a300a"},{"url":"https://git.kernel.org/stable/c/14fa884713fa2abf57999242c79a4a4b21634652"},{"url":"https://git.kernel.org/stable/c/ae0c55799795196a1ea157ca47868d7acc80a5c7"},{"url":"https://git.kernel.org/stable/c/c5234f89d7cb311880ef218cb7a969794a106678"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:24.235Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}