{"id":"CVE-2024-42109","aliases":["CVE-2024-42109"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nf_tables: unconditionally flush pending work before notifier","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: unconditionally flush pending work before notifier\n\nsyzbot reports:\n\nKASAN: slab-uaf in nft_ctx_update include/net/netfilter/nf_tables.h:1831\nKASAN: slab-uaf in nft_commit_release net/netfilter/nf_tables_api.c:9530\nKASAN: slab-uaf int nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597\nRead of size 2 at addr ffff88802b0051c4 by task kworker/1:1/45\n[..]\nWorkqueue: events nf_tables_trans_destroy_work\nCall Trace:\n nft_ctx_update include/net/netfilter/nf_tables.h:1831 [inline]\n nft_commit_release net/netfilter/nf_tables_api.c:9530 [inline]\n nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597\n\nProblem is that the notifier does a conditional flush, but its possible\nthat the table-to-be-removed is still referenced by transactions being\nprocessed by the worker, so we need to flush unconditionally.\n\nWe could make the flush_work depend on whether we found a table to delete\nin nf-next to avoid the flush for most cases.\n\nAFAICS this problem is only exposed in nf-next, with\ncommit e169285f8c56 (\"netfilter: nf_tables: do not store nft_ctx in transaction objects\"),\nwith this commit applied there is an unconditional fetch of\ntable->family which is whats triggering the above splat.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: unconditionally flush pending work before notifier\n\nsyzbot reports:\n\nKASAN: slab-uaf in nft_ctx_update include/net/netfilter/nf_tables.h:1831\nKASAN: slab-uaf in nft_commit_release net/netfilter/nf_tables_api.c:9530\nKASAN: slab-uaf int nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597\nRead of size 2 at addr ffff88802b0051c4 by task kworker/1:1/45\n[..]\nWorkqueue: events nf_tables_trans_destroy_work\nCall Trace:\n nft_ctx_update include/net/netfilter/nf_tables.h:1831 [inline]\n nft_commit_release net/netfilter/nf_tables_api.c:9530 [inline]\n nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597\n\nProblem is that the notifier does a conditional flush, but its possible\nthat the table-to-be-removed is still referenced by transactions being\nprocessed by the worker, so we need to flush unconditionally.\n\nWe could make the flush_work depend on whether we found a table to delete\nin nf-next to avoid the flush for most cases.\n\nAFAICS this problem is only exposed in nf-next, with\ncommit e169285f8c56 (\"netfilter: nf_tables: do not store nft_ctx in transaction objects\"),\nwith this commit applied there is an unconditional fetch of\ntable->family which is whats triggering the above splat.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: nf_tables: vaciar incondicionalmente el trabajo pendiente antes de que el notificador syzbot informe: KASAN: slab-uaf en nft_ctx_update include/net/netfilter/nf_tables.h:1831 KASAN: slab-uaf en nft_commit_release net/netfilter/nf_tables_api.c:9530 KASAN: slab-uaf int nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597 Lectura de tamaño 2 en la dirección ffff88802b0051c4 por tarea kworker/1:1/45 [..] ue : eventos nf_tables_trans_destroy_work Seguimiento de llamadas: nft_ctx_update include/net/netfilter/nf_tables.h:1831 [en línea] nft_commit_release net/netfilter/nf_tables_api.c:9530 [en línea] nf_tables_trans_destroy_work+0x152b/0x1750 s_api.c:9597 El problema es que el notificador realiza un vaciado condicional, pero es posible que las transacciones que procesa el trabajador aún hagan referencia a la tabla que se va a eliminar, por lo que debemos realizar un vaciado incondicional. Podríamos hacer que flux_work dependa de si encontramos una tabla para eliminar en nf-next para evitar el vaciado en la mayoría de los casos. AFAICS, este problema solo se expone en nf-next, con la confirmación e169285f8c56 (\"netfilter: nf_tables: no almacenar nft_ctx en objetos de transacción\"), con esta confirmación aplicada hay una búsqueda incondicional de tabla-&gt;familia que es lo que desencadena lo anterior salpicar.","source":"nvd"}],"published":"2024-07-30T07:46:04.194Z","modified":"2026-08-05T11:35:41.134Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"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":"f22954f8c58fd5f5489f5980796914e306757e77","fixed":"3325628cb36b7f216c5716e7b5124d9dc81199e4","status":"affected"},{"type":"git","introduced":"41841b585e53babdfb0fa6fdfa54f6d7c28c1206","fixed":"4c06c13317b9a08decedcd7aaf706691e336277c","status":"affected"},{"type":"git","introduced":"2c9f0293280e258606e54ed2b96fa71498432eae","fixed":"55a40406aac555defe9bdd0adec9508116ce7cb1","status":"affected"},{"type":"git","introduced":"2c9f0293280e258606e54ed2b96fa71498432eae","fixed":"09e650c3a3a7d804430260510534ccbf71c75b2e","status":"affected"},{"type":"git","introduced":"2c9f0293280e258606e54ed2b96fa71498432eae","fixed":"9f6958ba2e902f9820c594869bd710ba74b7c4c0","status":"affected"},{"type":"git","version":"4167aa477abcf62b0dfda51f3513280fa73cd588","status":"affected"},{"type":"semver","introduced":"5.15.129","fixed":"5.15.163","status":"affected"},{"type":"semver","introduced":"6.1.50","fixed":"6.1.98","status":"affected"},{"type":"semver","introduced":"6.4.13","fixed":"6.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"5.15.163","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.98","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.39","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.9","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","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.15.129","fixed":"5.15.163"},{"status":"affected","introduced":"6.1.50","fixed":"6.1.98"},{"status":"affected","introduced":"6.5","fixed":"6.6.39"},{"status":"affected","introduced":"6.7","fixed":"6.9.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3325628cb36b7f216c5716e7b5124d9dc81199e4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4c06c13317b9a08decedcd7aaf706691e336277c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/55a40406aac555defe9bdd0adec9508116ce7cb1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09e650c3a3a7d804430260510534ccbf71c75b2e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f6958ba2e902f9820c594869bd710ba74b7c4c0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:17:36.218Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42109","url":"https://www.cve.org/CVERecord?id=CVE-2024-42109","licence":"CVE Terms of Use","modified":"2026-08-05T11:35:41.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42109","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42109","licence":"Public domain","modified":"2026-08-04T11:19:34.947Z"}],"updatedAt":"2026-11-25T22:58:43.400Z","epss":{"score":0.00249,"percentile":0.17426,"date":"2026-12-01T12:00:22.000Z"}}