{"id":"CVE-2026-98027","published":"2026-09-25T10:23:45Z","modified":"2026-10-19T09:12:32Z","title":"net: dsa: mv88e6xxx: bound the policy rule dump by the caller's buffer size","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: mv88e6xxx: bound the policy rule dump by the caller's buffer size\n\nmv88e6xxx_get_rxnfc() uses rxnfc->rule_cnt as the write index while\ndumping the policy IDR, clobbering the input value before it has been\nlooked at.  That input is the number of entries the caller had room for.\nETHTOOL_GRXCLSRLALL requires no CAP_NET_ADMIN and the ioctl sizes the\nbuffer from the rule_cnt userspace passes in, so once an admin has\ninstalled policy rules any user can ask for fewer slots than there are\nrules and run off the end of the allocation.  A rule_cnt of 0 leaves the\nbuffer pointer NULL and the walk dereferences it.\n\nCount into a local so the caller's limit survives the walk, and stop with\n-EMSGSIZE once it is reached.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00156,"percentile":0.02443,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7e4bfc5f0b66feb22cba821303fc25ca22cd0887","tags":[]},{"url":"https://git.kernel.org/stable/c/01124cd2cf4b71755b1130ac82d78dcfbd5d69e3","tags":[]},{"url":"https://git.kernel.org/stable/c/609c4378f212cf580aae02250f1146caf63d873f","tags":[]},{"url":"https://git.kernel.org/stable/c/c5b5c52b6524c9fb50def2260baac745c095ec3a","tags":[]},{"url":"https://git.kernel.org/stable/c/44cd4674d9aa5bdf793b8a8b481c9e8536ed6070","tags":[]},{"url":"https://git.kernel.org/stable/c/7a683c2b062810bca203e41866389daf387c235b","tags":[]},{"url":"https://git.kernel.org/stable/c/cda5ac8fe8ac8e80b1703ebb8c4250726fc19739","tags":[]},{"url":"https://git.kernel.org/stable/c/b1fffc273112e7284c5b705e186b43b5770cd3d5","tags":[]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":0.49},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= da7dc87553046a43be1620a783ce3d9f6583d322, < 7e4bfc5f0b66feb22cba821303fc25ca22cd0887",">= da7dc87553046a43be1620a783ce3d9f6583d322, < 01124cd2cf4b71755b1130ac82d78dcfbd5d69e3",">= da7dc87553046a43be1620a783ce3d9f6583d322, < 609c4378f212cf580aae02250f1146caf63d873f",">= da7dc87553046a43be1620a783ce3d9f6583d322, < c5b5c52b6524c9fb50def2260baac745c095ec3a",">= da7dc87553046a43be1620a783ce3d9f6583d322, < 44cd4674d9aa5bdf793b8a8b481c9e8536ed6070",">= da7dc87553046a43be1620a783ce3d9f6583d322, < 7a683c2b062810bca203e41866389daf387c235b",">= da7dc87553046a43be1620a783ce3d9f6583d322, < cda5ac8fe8ac8e80b1703ebb8c4250726fc19739",">= da7dc87553046a43be1620a783ce3d9f6583d322, < b1fffc273112e7284c5b705e186b43b5770cd3d5"]},{"vendor":"Linux","product":"Linux","versions":["5.4"]}],"euvd":{"id":"EUVD-2026-86680","exploited":false,"provenance":"source"}}