# CVE-2021-47485: IB/qib: Protect from buffer overflow in struct qib\_user\_sdma\_pkt fields

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-120
- **Published:** 2024-05-22T08:19:36.158Z
- **Modified:** 2026-08-05T08:48:01.651Z

## Who should check

- Anyone running Linux \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< bda41654b6e0c125a624ca35d6d20beb8015b5d0; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 3f57c3f67fd93b4da86aeffea1ca32c484d054ad; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 60833707b968d5ae02a75edb7886dcd4a957cf0d; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 73d2892148aa4397a885b4f4afcfc5b27a325c42; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 0f8cdfff06829a0b0348b6debc29ff6a61967724; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< c3e17e58f571f34c51aeb17274ed02c2ed5cf780; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 0d4395477741608d123dad51def9fe50b7ebe952; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< d39bf40e55e666b5905fdbd46a0dced030ce87be
- Anyone running Linux 2.6.35

## 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.

## Affected and fixed versions

- Linux: \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< bda41654b6e0c125a624ca35d6d20beb8015b5d0; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 3f57c3f67fd93b4da86aeffea1ca32c484d054ad; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 60833707b968d5ae02a75edb7886dcd4a957cf0d; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 73d2892148aa4397a885b4f4afcfc5b27a325c42; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 0f8cdfff06829a0b0348b6debc29ff6a61967724; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< c3e17e58f571f34c51aeb17274ed02c2ed5cf780; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 0d4395477741608d123dad51def9fe50b7ebe952; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< d39bf40e55e666b5905fdbd46a0dced030ce87be (cvelist)
- Linux: 2.6.35 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47485. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47485.md
Affected: Linux >= f931551bafe1f10ded7f5282e2aa162c267a2e5d, < bda41654b6e0c125a624ca35d6d20beb8015b5d0; >= f931551bafe1f10ded7f5282e2aa162c267a2e5d, < 3f57c3f67fd93b4da86aeffea1ca32c484d054ad; >= f931551bafe1f10ded7f5282e2aa162c267a2e5d, < 60833707b968d5ae02a75edb7886dcd4a957cf0d; >= f931551bafe1f10ded7f528…
Fixed in: Linux 3f57c3f67fd93b4da86aeffea1ca32c484d054ad, Linux 60833707b968d5ae02a75edb7886dcd4a957cf0d, Linux 73d2892148aa4397a885b4f4afcfc5b27a325c42, Linux 0f8cdfff06829a0b0348b6debc29ff6a61967724, Linux 0d4395477741608d123dad51def9fe50b7ebe952

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47485 being exploited?

There is no confirmed exploitation: CVE-2021-47485 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47485?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47485?

Linux \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< bda41654b6e0c125a624ca35d6d20beb8015b5d0; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 3f57c3f67fd93b4da86aeffea1ca32c484d054ad; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 60833707b968d5ae02a75edb7886dcd4a957cf0d; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 73d2892148aa4397a885b4f4afcfc5b27a325c42; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 0f8cdfff06829a0b0348b6debc29ff6a61967724; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< c3e17e58f571f34c51aeb17274ed02c2ed5cf780; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< 0d4395477741608d123dad51def9fe50b7ebe952; \>= f931551bafe1f10ded7f5282e2aa162c267a2e5d, \< d39bf40e55e666b5905fdbd46a0dced030ce87be; Linux 2.6.35.

### Is there a fix for CVE-2021-47485?

Yes. Fixed in Linux 3f57c3f67fd93b4da86aeffea1ca32c484d054ad, Linux 60833707b968d5ae02a75edb7886dcd4a957cf0d, Linux 73d2892148aa4397a885b4f4afcfc5b27a325c42, Linux 0f8cdfff06829a0b0348b6debc29ff6a61967724, Linux 0d4395477741608d123dad51def9fe50b7ebe952. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47485?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47485>

HTML: <https://flawdb.com/CVE-2021-47485> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47485>
