# CVE-2021-47148: octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-25T09:07:44.472Z
- Modified: 2026-08-05T08:46:19.658Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context()

This function is called from ethtool_set_rxfh() and "*rss_context"
comes from the user.  Add some bounds checking to prevent memory
corruption.

(As written by CVE List.)

## Affected

- Linux Linux: from 81a4362016e7d8b17031fe1aa43cdb58a7f0f163 before 389146bc6d2bbb20714d06624b74856320ce40f7; from 81a4362016e7d8b17031fe1aa43cdb58a7f0f163 before e5cc361e21648b75f935f9571d4003aaee480214; 5.12 (not affected: before 5.12; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.12 before 5.12.9; 5.13

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/389146bc6d2bbb20714d06624b74856320ce40f7> (patch)
- <https://git.kernel.org/stable/c/e5cc361e21648b75f935f9571d4003aaee480214> (patch)

## Sources

- CVE List: [CVE-2021-47148](https://www.cve.org/CVERecord?id=CVE-2021-47148), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47148](https://nvd.nist.gov/vuln/detail/CVE-2021-47148), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47148 · Whole record: https://cve.day/CVE-2021-47148.json · Rebuilt by cve.day 2026-11-25T22:58:08.689Z
