{"id":"CVE-2026-143431","aliases":["EUVD-2026-145060","GHSA-mc3f-wg34-c3h5"],"status":"published","title":"net: lan966x: do not warn on MAC entries that are not port destined","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on MAC entries that are not port destined\n\nlan966x_mac_irq_handler() scans the rows of the MAC table that the\nanalyzer reports as changed, reads back all four columns of each row and\ntreats ANA_MACACCESS.DEST_IDX as a port number.\n\nBefore this patch, a destination index above num_phys_ports hits a\nWARN_ON(). The driver installs such entries itself:\nlan966x_mac_cpu_learn() uses PGID_CPU, and L2 multicast entries use a\ngeneral-purpose PGID. A row holding one of them is read back whenever\nanother entry in the same row is learned or aged out, so the scan warns\nin normal operation, repeatedly once the MAC table is busy.\n\nSkipping such a column is already the right behaviour. Drop the\nWARN_ON() and keep the bounds check as a plain filter.\n\nFound by an AI code review agent. Reproduced on a lan9668 board by\nbridging two ports with a 10 s ageing time and sending three rounds of\n2048 new source MACs: the base kernel warned 42 times from\nlan966x_mac_irq_process(), the fixed kernel did not warn.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-12-05T01:41:11Z","modified":"2026-12-05T03:30:37Z","fixes":[{"ecosystem":"Linux","package":"Kernel","fixed_in":["6.1.193","6.6.163","6.12.119","6.18.65","7.3.6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Linux","package":"Kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.17.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}]}],"products":[{"vendor":"linux","product":"linux"}],"references":[{"url":"https://git.kernel.org/stable/c/3f3fdfbbc053d4837161ce106d3b1434c18d1abd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/395854c19d84d04dcd536ff39d1cf6f328ec90cd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c21a9a1d17bd4dc61bc508c34f7bce8fb3b89169","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2c2017222291f83d83b2540de473402741d74311","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d671999250049a2a551e2d03e56829ffcb52d705","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2cffcf1aeabb187e4f08fe4f5363128a3c45d786","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143431","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mc3f-wg34-c3h5"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143431.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-143431","title":"net: lan966x: do not warn on MAC entries that are not port destined","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on MAC entries that are not port destined\n\nlan966x_mac_irq_handler() scans the rows of the MAC table that the\nanalyzer reports as changed, reads back all four columns of each row and\ntreats ANA_MACACCESS.DEST_IDX as a port number.\n\nBefore this patch, a destination index above num_phys_ports hits a\nWARN_ON(). The driver installs such entries itself:\nlan966x_mac_cpu_learn() uses PGID_CPU, and L2 multicast entries use a\ngeneral-purpose PGID. A row holding one of them is read back whenever\nanother entry in the same row is learned or aged out, so the scan warns\nin normal operation, repeatedly once the MAC table is busy.\n\nSkipping such a column is already the right behaviour. Drop the\nWARN_ON() and keep the bounds check as a plain filter.\n\nFound by an AI code review agent. Reproduced on a lan9668 board by\nbridging two ports with a 10 s ageing time and sending three rounds of\n2048 new source MACs: the base kernel warned 42 times from\nlan966x_mac_irq_process(), the fixed kernel did not warn.","status":"published","published":"2026-12-05T01:41:11.514Z","modified":"2026-12-05T01:41:11.514Z","updated_at":"2026-12-05T01:48:47.517798Z"}],"euvd":[{"id":"EUVD-2026-145060","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on MAC entries that are not port destined\n\nlan966x_mac_irq_handler() scans the rows of the MAC table that the\nanalyzer reports as changed, reads back all four columns of each row and\ntreats ANA_MACACCESS.DEST_IDX as a port number.\n\nBefore this patch, a destination index above num_phys_ports hits a\nWARN_ON(). The driver installs such entries itself:\nlan966x_mac_cpu_learn() uses PGID_CPU, and L2 multicast entries use a\ngeneral-purpose PGID. A row holding one of them is read back whenever\nanother entry in the same row is learned or aged out, so the scan warns\nin normal operation, repeatedly once the MAC table is busy.\n\nSkipping such a column is already the right behaviour. Drop the\nWARN_ON() and keep the bounds check as a plain filter.\n\nFound by an AI code review agent. Reproduced on a lan9668 board by\nbridging two ports with a 10 s ageing time and sending three rounds of\n2048 new source MACs: the base kernel warned 42 times from\nlan966x_mac_irq_process(), the fixed kernel did not warn.","status":"published","published":"2026-12-05T01:41:11Z","modified":"2026-12-05T01:41:11Z","updated_at":"2026-12-05T03:44:21.912352Z"}],"ghsa":[{"id":"GHSA-mc3f-wg34-c3h5","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on...","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on MAC entries that are not port destined\n\nlan966x_mac_irq_handler() scans the rows of the MAC table that the\nanalyzer reports as changed, reads back all four columns of each row and\ntreats ANA_MACACCESS.DEST_IDX as a port number.\n\nBefore this patch, a destination index above num_phys_ports hits a\nWARN_ON(). The driver installs such entries itself:\nlan966x_mac_cpu_learn() uses PGID_CPU, and L2 multicast entries use a\ngeneral-purpose PGID. A row holding one of them is read back whenever\nanother entry in the same row is learned or aged out, so the scan warns\nin normal operation, repeatedly once the MAC table is busy.\n\nSkipping such a column is already the right behaviour. Drop the\nWARN_ON() and keep the bounds check as a plain filter.\n\nFound by an AI code review agent. Reproduced on a lan9668 board by\nbridging two ports with a 10 s ageing time and sending three rounds of\n2048 new source MACs: the base kernel warned 42 times from\nlan966x_mac_irq_process(), the fixed kernel did not warn.","status":"published","published":"2026-12-05T03:30:29Z","modified":"2026-12-05T03:30:37Z","updated_at":"2026-12-05T03:31:20.896926Z"}],"nvd":[{"id":"CVE-2026-143431","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on MAC entries that are not port destined\n\nlan966x_mac_irq_handler() scans the rows of the MAC table that the\nanalyzer reports as changed, reads back all four columns of each row and\ntreats ANA_MACACCESS.DEST_IDX as a port number.\n\nBefore this patch, a destination index above num_phys_ports hits a\nWARN_ON(). The driver installs such entries itself:\nlan966x_mac_cpu_learn() uses PGID_CPU, and L2 multicast entries use a\ngeneral-purpose PGID. A row holding one of them is read back whenever\nanother entry in the same row is learned or aged out, so the scan warns\nin normal operation, repeatedly once the MAC table is busy.\n\nSkipping such a column is already the right behaviour. Drop the\nWARN_ON() and keep the bounds check as a plain filter.\n\nFound by an AI code review agent. Reproduced on a lan9668 board by\nbridging two ports with a 10 s ageing time and sending three rounds of\n2048 new source MACs: the base kernel warned 42 times from\nlan966x_mac_irq_process(), the fixed kernel did not warn.","status":"published","published":"2026-12-05T03:19:54.707Z","modified":"2026-12-05T03:19:54.707Z","updated_at":"2026-12-05T03:21:31.003878Z"}],"osv":[{"id":"CVE-2026-143431","title":"net: lan966x: do not warn on MAC entries that are not port destined","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: do not warn on MAC entries that are not port destined\n\nlan966x_mac_irq_handler() scans the rows of the MAC table that the\nanalyzer reports as changed, reads back all four columns of each row and\ntreats ANA_MACACCESS.DEST_IDX as a port number.\n\nBefore this patch, a destination index above num_phys_ports hits a\nWARN_ON(). The driver installs such entries itself:\nlan966x_mac_cpu_learn() uses PGID_CPU, and L2 multicast entries use a\ngeneral-purpose PGID. A row holding one of them is read back whenever\nanother entry in the same row is learned or aged out, so the scan warns\nin normal operation, repeatedly once the MAC table is busy.\n\nSkipping such a column is already the right behaviour. Drop the\nWARN_ON() and keep the bounds check as a plain filter.\n\nFound by an AI code review agent. Reproduced on a lan9668 board by\nbridging two ports with a 10 s ageing time and sending three rounds of\n2048 new source MACs: the base kernel warned 42 times from\nlan966x_mac_irq_process(), the fixed kernel did not warn.","status":"published","published":"2026-12-05T01:41:11.514Z","modified":"2026-12-05T03:01:06.538178183Z","updated_at":"2026-12-05T03:12:29.145556Z"}]}}
