# CVE-2021-47485: IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields

- 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-05-22T08:19:36.158Z
- Modified: 2026-08-05T08:48:01.651Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields

Overflowing either addrlimit or bytes_togo can allow userspace to trigger
a buffer overflow of kernel memory. Check for overflows in all the places
doing math on user controlled buffers.

(As written by CVE List.)

## Affected

- Linux Linux: from f931551bafe1f10ded7f5282e2aa162c267a2e5d before bda41654b6e0c125a624ca35d6d20beb8015b5d0; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before 3f57c3f67fd93b4da86aeffea1ca32c484d054ad; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before 60833707b968d5ae02a75edb7886dcd4a957cf0d; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before 73d2892148aa4397a885b4f4afcfc5b27a325c42; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before 0f8cdfff06829a0b0348b6debc29ff6a61967724; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before c3e17e58f571f34c51aeb17274ed02c2ed5cf780; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before 0d4395477741608d123dad51def9fe50b7ebe952; from f931551bafe1f10ded7f5282e2aa162c267a2e5d before d39bf40e55e666b5905fdbd46a0dced030ce87be; 2.6.35 (not affected: before 2.6.35; from 4.4.292 up to 4.4.*; from 4.9.290 up to 4.9.*; from 4.14.255 up to 4.14.*; from 4.19.216 up to 4.19.*; from 5.4.157 up to 5.4.*; from 5.10.77 up to 5.10.*; from 5.14.16 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 2.6.35 before 4.4.292; from 4.5 before 4.9.290; from 4.10 before 4.14.255; from 4.15 before 4.19.216; from 4.20 before 5.4.157; from 5.5 before 5.10.77; from 5.11 before 5.14.16; 5.15

## 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/bda41654b6e0c125a624ca35d6d20beb8015b5d0> (patch)
- <https://git.kernel.org/stable/c/3f57c3f67fd93b4da86aeffea1ca32c484d054ad> (patch)
- <https://git.kernel.org/stable/c/60833707b968d5ae02a75edb7886dcd4a957cf0d> (patch)
- <https://git.kernel.org/stable/c/73d2892148aa4397a885b4f4afcfc5b27a325c42> (patch)
- <https://git.kernel.org/stable/c/0f8cdfff06829a0b0348b6debc29ff6a61967724> (patch)
- <https://git.kernel.org/stable/c/c3e17e58f571f34c51aeb17274ed02c2ed5cf780> (patch)
- <https://git.kernel.org/stable/c/0d4395477741608d123dad51def9fe50b7ebe952> (patch)
- <https://git.kernel.org/stable/c/d39bf40e55e666b5905fdbd46a0dced030ce87be> (patch)

## Sources

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

---

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