{"id":"CVE-2026-46196","summary":"tracepoint: balance regfunc() on func_add() failure in tracepoint_add_func()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracepoint: balance regfunc() on func_add() failure in tracepoint_add_func()\n\nWhen a tracepoint goes through the 0 -\u003e 1 transition, tracepoint_add_func()\ninvokes the subsystem's ext-\u003eregfunc() before attempting to install the\nnew probe via func_add(). If func_add() then fails (for example, when\nallocate_probes() cannot allocate a new probe array under memory pressure\nand returns -ENOMEM), the function returns the error without calling the\nmatching ext-\u003eunregfunc(), leaving the side effects of regfunc() behind\nwith no installed probe to justify them.\n\nFor syscall tracepoints this is particularly unpleasant: syscall_regfunc()\nbumps sys_tracepoint_refcount and sets SYSCALL_TRACEPOINT on every task.\nAfter a leaked failure, the refcount is stuck at a non-zero value with no\nconsumer, and every task continues paying the syscall trace entry/exit\noverhead until reboot. Other subsystems providing regfunc()/unregfunc()\npairs exhibit similarly scoped persistent state.\n\nMirror the existing 1 -\u003e 0 cleanup and call ext-\u003eunregfunc() in the\nfunc_add() error path, gated on the same condition used there so the\nunwind is symmetric with the registration.","modified":"2026-07-15T01:49:17.134532970Z","published":"2026-05-28T09:36:49.293Z","related":["openSUSE-SU-2026:10954-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46196.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/247ed8a969f981bfba3112fd4bb441eaa6cef59c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c5b8eeea006eb694c81631cd5713d494b80be90"},{"type":"WEB","url":"https://git.kernel.org/stable/c/342829e042ac00f3d68d442ea92873fb6683f494"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36ff362235307af95152d510b53c2d9b8773a342"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f1756d043e56ea2e9a6c858fb290a0cf6fc2251"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5787052e5f69beb649f3d6a80a8aa37d9e683e4e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7bcadb3c2bc1cf60690e931aadd35fb7bd646a49"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fad217e16fded7f3c09f8637b0f6a224d58b5f2e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46196.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46196"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8cf868affdc459beee1a941df0cfaba1673740e3"},{"fixed":"5787052e5f69beb649f3d6a80a8aa37d9e683e4e"},{"fixed":"4f1756d043e56ea2e9a6c858fb290a0cf6fc2251"},{"fixed":"36ff362235307af95152d510b53c2d9b8773a342"},{"fixed":"247ed8a969f981bfba3112fd4bb441eaa6cef59c"},{"fixed":"7bcadb3c2bc1cf60690e931aadd35fb7bd646a49"},{"fixed":"2c5b8eeea006eb694c81631cd5713d494b80be90"},{"fixed":"342829e042ac00f3d68d442ea92873fb6683f494"},{"fixed":"fad217e16fded7f3c09f8637b0f6a224d58b5f2e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46196.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"5.10.259"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.210"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.176"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.140"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.88"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.30"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46196.json"}}],"schema_version":"1.7.5"}