{"id":"CVE-2026-98030","aliases":["CVE-2026-98030"],"related":[],"kind":"vulnerability","state":"published","title":"net: dsa: bcm_sf2: bound the CFP rule dump by the caller's buffer size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: bcm_sf2: bound the CFP rule dump by the caller's buffer size\n\nbcm_sf2_cfp_rule_get_all() walks the whole cfp.unique bitmap into\nrule_locs[] without consulting nfc->rule_cnt, which is how many entries\nthe caller had room for.  ETHTOOL_GRXCLSRLALL requires no CAP_NET_ADMIN\nand the ioctl sizes the buffer from the rule_cnt userspace passes in, so\nonce an admin has installed CFP rules any user can ask for fewer slots\nthan there are rules and run off the end of the allocation.  A rule_cnt\nof 0 leaves the buffer pointer NULL and the walk dereferences it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: bcm_sf2: bound the CFP rule dump by the caller's buffer size\n\nbcm_sf2_cfp_rule_get_all() walks the whole cfp.unique bitmap into\nrule_locs[] without consulting nfc->rule_cnt, which is how many entries\nthe caller had room for.  ETHTOOL_GRXCLSRLALL requires no CAP_NET_ADMIN\nand the ioctl sizes the buffer from the rule_cnt userspace passes in, so\nonce an admin has installed CFP rules any user can ask for fewer slots\nthan there are rules and run off the end of the allocation.  A rule_cnt\nof 0 leaves the buffer pointer NULL and the walk dereferences it.","source":"cvelist"}],"published":"2026-09-25T10:23:46.959Z","modified":"2026-10-19T10:17:56.990Z","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":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"ca49c526291d7cd3a5cb49b0edd7f50a5ae7176e","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"8e41ce02589c92356bfd8ef62f6ceff840546e1a","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"f2cf4ef2d94fc15fd2e21c131fc1ab3f76125bf4","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"f5e93162b3dd195bfda815e8f7a39aaf1d45437b","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"f1a2869b3629c0e8394b77b38cb9f19a018c653c","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"fd1a78c16b1f6978c09cf048e15f349732e4c707","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"b231b6d8516d3fe0d4bba549908e08d26a4531a5","status":"affected"},{"type":"git","introduced":"7318166cacad158b46240f66250d7cc5a481653b","fixed":"cdb719f4b8596d9ccee2d56d204c2c4dce982f46","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","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/ca49c526291d7cd3a5cb49b0edd7f50a5ae7176e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e41ce02589c92356bfd8ef62f6ceff840546e1a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2cf4ef2d94fc15fd2e21c131fc1ab3f76125bf4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5e93162b3dd195bfda815e8f7a39aaf1d45437b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1a2869b3629c0e8394b77b38cb9f19a018c653c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fd1a78c16b1f6978c09cf048e15f349732e4c707","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b231b6d8516d3fe0d4bba549908e08d26a4531a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cdb719f4b8596d9ccee2d56d204c2c4dce982f46","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98030","url":"https://www.cve.org/CVERecord?id=CVE-2026-98030","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:35.325Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98030","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98030","licence":"Public domain","modified":"2026-10-19T10:17:56.990Z"}],"updatedAt":"2026-11-25T22:59:41.029Z","epss":{"score":0.00122,"percentile":0.02143,"date":"2026-12-01T12:00:22.000Z"}}