# CVE-2021-47302: igc: Fix use-after-free error during reset

> 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, NVD) `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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-21T14:35:23.369Z
- **Modified:** 2026-06-17T04:17:08.680Z

## Who should check

- Anyone running Linux \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< a9508e0edfe369ac95d0825bcdca976436ce780f; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< e15f629036bac005fc758b4ad17896cf2312add4; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< ea5e36b7367ea0a36ef73a163768f16d2977bd83; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< 56ea7ed103b46970e171eb1c95916f393d64eeff
- Anyone running Linux 4.20

## Description

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

igc: Fix use-after-free error during reset

Cleans the next descriptor to watch (next\_to\_watch) when cleaning the
TX ring.

Failure to do so can cause invalid memory accesses. If igc\_poll() runs
while the controller is being reset this can lead to the driver try to
free a skb that was already freed.

Log message:

 \[  101.525242\] refcount\_t: underflow; use-after-free.
 \[  101.525251\] WARNING: CPU: 1 PID: 646 at lib/refcount.c:28 refcount\_warn\_saturate+0xab/0xf0
 \[  101.525259\] Modules linked in: sch\_etf(E) sch\_mqprio(E) rfkill(E) intel\_rapl\_msr(E) intel\_rapl\_common(E)
 x86\_pkg\_temp\_thermal(E) intel\_powerclamp(E) coretemp(E) binfmt\_misc(E) kvm\_intel(E) kvm(E) irqbypass(E) crc32\_pclmul(E)
 ghash\_clmulni\_intel(E) aesni\_intel(E) mei\_wdt(E) libaes(E) crypto\_simd(E) cryptd(E) glue\_helper(E) snd\_hda\_codec\_hdmi(E)
 rapl(E) intel\_cstate(E) snd\_hda\_intel(E) snd\_intel\_dspcfg(E) sg(E) soundwire\_intel(E) intel\_uncore(E) at24(E)
 soundwire\_generic\_allocation(E) iTCO\_wdt(E) soundwire\_cadence(E) intel\_pmc\_bxt(E) serio\_raw(E) snd\_hda\_codec(E)
 iTCO\_vendor\_support(E) watchdog(E) snd\_hda\_core(E) snd\_hwdep(E) snd\_soc\_core(E) snd\_compress(E) snd\_pcsp(E)
 soundwire\_bus(E) snd\_pcm(E) evdev(E) snd\_timer(E) mei\_me(E) snd(E) soundcore(E) mei(E) configfs(E) ip\_tables(E) x\_tables(E)
 autofs4(E) ext4(E) crc32c\_generic(E) crc16(E) mbcache(E) jbd2(E) sd\_mod(E) t10\_pi(E) crc\_t10dif(E) crct10dif\_generic(E)
 i915(E) ahci(E) libahci(E) ehci\_pci(E) igb(E) xhci\_pci(E) ehci\_hcd(E)
 \[  101.525303\]  drm\_kms\_helper(E) dca(E) xhci\_hcd(E) libata(E) crct10dif\_pclmul(E) cec(E) crct10dif\_common(E) tsn(E) igc(E)
 e1000e(E) ptp(E) i2c\_i801(E) crc32c\_intel(E) psmouse(E) i2c\_algo\_bit(E) i2c\_smbus(E) scsi\_mod(E) lpc\_ich(E) pps\_core(E)
 usbcore(E) drm(E) button(E) video(E)
 \[  101.525318\] CPU: 1 PID: 646 Comm: irq/37-enp7s0-T Tainted: G            E     5.10.30-rt37-tsn1-rt-ipipe \#ipipe
 \[  101.525320\] Hardware name: SIEMENS AG SIMATIC IPC427D/A5E31233588, BIOS V17.02.09 03/31/2017
 \[  101.525322\] RIP: 0010:refcount\_warn\_saturate+0xab/0xf0
 \[  101.525325\] Code: 05 31 48 44 01 01 e8 f0 c6 42 00 0f 0b c3 80 3d 1f 48 44 01 00 75 90 48 c7 c7 78 a8 f3 a6 c6 05 0f 48
 44 01 01 e8 d1 c6 42 00 \<0f\> 0b c3 80 3d fe 47 44 01 00 0f 85 6d ff ff ff 48 c7 c7 d0 a8 f3
 \[  101.525327\] RSP: 0018:ffffbdedc0917cb8 EFLAGS: 00010286
 \[  101.525329\] RAX: 0000000000000000 RBX: ffff98fd6becbf40 RCX: 0000000000000001
 \[  101.525330\] RDX: 0000000000000001 RSI: ffffffffa6f2700c RDI: 00000000ffffffff
 \[  101.525332\] RBP: ffff98fd6becc14c R08: ffffffffa7463d00 R09: ffffbdedc0917c50
 \[  101.525333\] R10: ffffffffa74c3578 R11: 0000000000000034 R12: 00000000ffffff00
 \[  101.525335\] R13: ffff98fd6b0b1000 R14: 0000000000000039 R15: ffff98fd6be35c40
 \[  101.525337\] FS:  0000000000000000(0000) GS:ffff98fd6e240000(0000) knlGS:0000000000000000
 \[  101.525339\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 \[  101.525341\] CR2: 00007f34135a3a70 CR3: 0000000150210003 CR4: 00000000001706e0
 \[  101.525343\] Call Trace:
 \[  101.525346\]  sock\_wfree+0x9c/0xa0
 \[  101.525353\]  unix\_destruct\_scm+0x7b/0xa0
 \[  101.525358\]  skb\_release\_head\_state+0x40/0x90
 \[  101.525362\]  skb\_release\_all+0xe/0x30
 \[  101.525364\]  napi\_consume\_skb+0x57/0x160
 \[  101.525367\]  igc\_poll+0xb7/0xc80 \[igc\]
 \[  101.525376\]  ? sched\_clock+0x5/0x10
 \[  101.525381\]  ? sched\_clock\_cpu+0xe/0x100
 \[  101.525385\]  net\_rx\_action+0x14c/0x410
 \[  101.525388\]  \_\_do\_softirq+0xe9/0x2f4
 \[  101.525391\]  \_\_local\_bh\_enable\_ip+0xe3/0x110
 \[  101.525395\]  ? irq\_finalize\_oneshot.part.47+0xe0/0xe0
 \[  101.525398\]  irq\_forced\_thread\_fn+0x6a/0x80
 \[  101.525401\]  irq\_thread+0xe8/0x180
 \[  101.525403\]  ? wake\_threads\_waitq+0x30/0x30
 \[  101.525406\]  ? irq\_thread\_check\_affinity+0xd0/0xd0
 \[  101.525408\]  kthread+0x183/0x1a0
 \[  101.525412\]  ? kthread\_park+0x80/0x80
 \[  101.525415\]  ret\_from\_fork+0x22/0x30

## Affected and fixed versions

- Linux: \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< a9508e0edfe369ac95d0825bcdca976436ce780f; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< e15f629036bac005fc758b4ad17896cf2312add4; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< ea5e36b7367ea0a36ef73a163768f16d2977bd83; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< 56ea7ed103b46970e171eb1c95916f393d64eeff (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 56ea7ed103b46970e171eb1c95916f393d64eeff or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47302.md
Affected: Linux >= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, < a9508e0edfe369ac95d0825bcdca976436ce780f; >= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, < e15f629036bac005fc758b4ad17896cf2312add4; >= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, < ea5e36b7367ea0a36ef73a163768f16d2977bd83; >= 13b5b7fd6a4a96dffe604f2…
Fixed in: Linux 56ea7ed103b46970e171eb1c95916f393d64eeff

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-47302 being exploited?

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

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

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

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

Linux \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< a9508e0edfe369ac95d0825bcdca976436ce780f; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< e15f629036bac005fc758b4ad17896cf2312add4; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< ea5e36b7367ea0a36ef73a163768f16d2977bd83; \>= 13b5b7fd6a4a96dffe604f25e7b64cfbd9520924, \< 56ea7ed103b46970e171eb1c95916f393d64eeff; Linux 4.20.

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

Yes. Fixed in Linux 56ea7ed103b46970e171eb1c95916f393d64eeff. Upgrade Linux to 56ea7ed103b46970e171eb1c95916f393d64eeff or later.

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

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/a9508e0edfe369ac95d0825bcdca976436ce780f>
- patch: <https://git.kernel.org/stable/c/e15f629036bac005fc758b4ad17896cf2312add4>
- patch: <https://git.kernel.org/stable/c/ea5e36b7367ea0a36ef73a163768f16d2977bd83>
- patch: <https://git.kernel.org/stable/c/56ea7ed103b46970e171eb1c95916f393d64eeff>

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

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