{"id":"CVE-2026-98027","aliases":["CVE-2026-98027"],"related":[],"kind":"vulnerability","state":"published","title":"net: dsa: mv88e6xxx: bound the policy rule dump by the caller's buffer size","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-25T10:23:45.123Z","modified":"2026-10-19T10:17:56.653Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"7e4bfc5f0b66feb22cba821303fc25ca22cd0887","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"01124cd2cf4b71755b1130ac82d78dcfbd5d69e3","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"609c4378f212cf580aae02250f1146caf63d873f","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"c5b5c52b6524c9fb50def2260baac745c095ec3a","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"44cd4674d9aa5bdf793b8a8b481c9e8536ed6070","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"7a683c2b062810bca203e41866389daf387c235b","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"cda5ac8fe8ac8e80b1703ebb8c4250726fc19739","status":"affected"},{"type":"git","introduced":"da7dc87553046a43be1620a783ce3d9f6583d322","fixed":"b1fffc273112e7284c5b705e186b43b5770cd3d5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/7e4bfc5f0b66feb22cba821303fc25ca22cd0887","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01124cd2cf4b71755b1130ac82d78dcfbd5d69e3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/609c4378f212cf580aae02250f1146caf63d873f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5b5c52b6524c9fb50def2260baac745c095ec3a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/44cd4674d9aa5bdf793b8a8b481c9e8536ed6070","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7a683c2b062810bca203e41866389daf387c235b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cda5ac8fe8ac8e80b1703ebb8c4250726fc19739","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1fffc273112e7284c5b705e186b43b5770cd3d5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98027","url":"https://www.cve.org/CVERecord?id=CVE-2026-98027","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:32.331Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98027","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98027","licence":"Public domain","modified":"2026-10-19T10:17:56.653Z"}],"updatedAt":"2026-11-25T22:59:41.028Z","epss":{"score":0.00122,"percentile":0.02143,"date":"2026-12-01T12:00:22.000Z"}}