{"id":"CVE-2026-99285","aliases":["CVE-2026-99285"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nft_byteorder: remove multi-register support","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_byteorder: remove multi-register support\n\n64bit byteorder conversion is broken when several registers need to be\nconverted because the source register array advances in steps for 4 bytes\ninstead of 8:\n\n  for (i = ...\n      src64 = nft_reg_load64(&src[i]);\n                             ~~~~~ u32 *src\n      nft_reg_store64(&dst64[i],\n\nRemove the multi-register support, it has other issues as well:\n\nPablo points out that commit\ncaf3ef7468f7 (\"netfilter: nf_tables: prevent OOB access in nft_byteorder_eval\")\nalters semantics: before the loop operated on registers, i.e.\n for ( ... )\n   dst32[i] = htons((u16)src32[i])\n\n .. but after the patch it will operate on bytes, which makes this\n useless to convert e.g. concatenations, which store each compound\n in its own register.\n\nMulti-convert of u32 has one theoretical application:\n\nct mark . meta mark . tcp dport @intervalset\n\nBecause ct mark and meta mark are host byte order, use with\nintervals has to convert the byteorder for ct/meta mark value\nto network byte order (bigendian).\n\nnftables emits this:\n [ meta load mark => reg 1 ]\n [ byteorder reg 1 = hton(reg 1, 4, 4) ]\n [ ct load mark => reg 9 ]\n [ byteorder reg 9 = hton(reg 9, 4, 4) ]\n ...\n\nI.e. two separate calls.  Theoretically it could be changed to do:\n [ meta load mark => reg 1 ]\n [ ct load mark => reg 9 ]\n [ byteorder reg 1 = htonl(reg 1, 4, 8) ]\n ...\n\nBut then all it would take to change the set to\nmeta mark . tcp dport . ct mark\n\n... and we'd be back to two \"byteorder\" calls. IOW, support to\nconvert a range of registers is both dysfunctional and dubious.\n\nSimplify this: remove the feature.\n\nPablo Neira Ayuso points out that nftables before 1.1.0 can generate\nincorrect byteorder conversions, see 9fe58952c45a,\n\"evaluate: skip byteorder conversion for selector smaller than 2 bytes\"\nin nftables.git).  Affected rulesets fail to load with this change and\nold userspace due to 'len != size' check.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_byteorder: remove multi-register support\n\n64bit byteorder conversion is broken when several registers need to be\nconverted because the source register array advances in steps for 4 bytes\ninstead of 8:\n\n  for (i = ...\n      src64 = nft_reg_load64(&src[i]);\n                             ~~~~~ u32 *src\n      nft_reg_store64(&dst64[i],\n\nRemove the multi-register support, it has other issues as well:\n\nPablo points out that commit\ncaf3ef7468f7 (\"netfilter: nf_tables: prevent OOB access in nft_byteorder_eval\")\nalters semantics: before the loop operated on registers, i.e.\n for ( ... )\n   dst32[i] = htons((u16)src32[i])\n\n .. but after the patch it will operate on bytes, which makes this\n useless to convert e.g. concatenations, which store each compound\n in its own register.\n\nMulti-convert of u32 has one theoretical application:\n\nct mark . meta mark . tcp dport @intervalset\n\nBecause ct mark and meta mark are host byte order, use with\nintervals has to convert the byteorder for ct/meta mark value\nto network byte order (bigendian).\n\nnftables emits this:\n [ meta load mark => reg 1 ]\n [ byteorder reg 1 = hton(reg 1, 4, 4) ]\n [ ct load mark => reg 9 ]\n [ byteorder reg 9 = hton(reg 9, 4, 4) ]\n ...\n\nI.e. two separate calls.  Theoretically it could be changed to do:\n [ meta load mark => reg 1 ]\n [ ct load mark => reg 9 ]\n [ byteorder reg 1 = htonl(reg 1, 4, 8) ]\n ...\n\nBut then all it would take to change the set to\nmeta mark . tcp dport . ct mark\n\n... and we'd be back to two \"byteorder\" calls. IOW, support to\nconvert a range of registers is both dysfunctional and dubious.\n\nSimplify this: remove the feature.\n\nPablo Neira Ayuso points out that nftables before 1.1.0 can generate\nincorrect byteorder conversions, see 9fe58952c45a,\n\"evaluate: skip byteorder conversion for selector smaller than 2 bytes\"\nin nftables.git).  Affected rulesets fail to load with this change and\nold userspace due to 'len != size' check.","source":"cvelist"}],"published":"2026-11-10T17:37:13.348Z","modified":"2026-11-19T15:17:42.683Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63","fixed":"3c5fb3a6c8118d15e60295e76fb5b879021eef43","status":"affected"},{"type":"git","introduced":"c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63","fixed":"dc29c0478b8564feb9371e715b5a0016eb8903fd","status":"affected"},{"type":"git","introduced":"c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63","fixed":"bb061d3de41707415269be75ebf700efb03ec212","status":"affected"},{"type":"git","version":"fca41e5b687e029f69e3a35a2fa31e2560e538dc","status":"affected"},{"type":"git","version":"25b42be4e067e107a2559266b54bf07fa5b094fb","status":"affected"},{"type":"git","version":"9a865a11d6890d4a789db1eaafebdc8bd092b12c","status":"affected"},{"type":"git","version":"b8b514b2a6cdfac24911e4910461bcb9db15ca8d","status":"affected"},{"type":"git","version":"18a169810cff769a7a697b35058c756805f589e0","status":"affected"},{"type":"git","version":"1a605657adc58b3c8e2c1c66aaa5fecd29072135","status":"affected"},{"type":"git","version":"013deed31ab15ef287b0045e4e7bd8f250e75b94","status":"affected"},{"type":"semver","introduced":"4.19.307","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.269","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.10.210","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.15.140","fixed":"5.16","status":"affected"},{"type":"semver","introduced":"6.1.64","fixed":"6.2","status":"affected"},{"type":"semver","introduced":"6.5.13","fixed":"6.6","status":"affected"},{"type":"semver","introduced":"6.6.3","fixed":"6.7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.115","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.59","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","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/3c5fb3a6c8118d15e60295e76fb5b879021eef43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc29c0478b8564feb9371e715b5a0016eb8903fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb061d3de41707415269be75ebf700efb03ec212","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/suruurism/cve-writeups-and-pocs/blob/main/CVE-2026-99285/CVE-2026-99285.md","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99285","url":"https://www.cve.org/CVERecord?id=CVE-2026-99285","licence":"CVE Terms of Use","modified":"2026-11-19T14:20:08.246Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99285","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99285","licence":"Public domain","modified":"2026-11-19T15:17:42.683Z"}],"updatedAt":"2026-11-25T22:59:49.834Z","epss":{"score":0.00201,"percentile":0.10476,"date":"2026-12-02T12:00:21.000Z"}}