# CVE-2021-46976: drm/i915: Fix crash in auto\_retire

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2024-02-28T08:13:07.887Z
- **Modified:** 2026-06-17T04:16:02.900Z

## Who should check

- Anyone running Linux \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 805c990a9c54b9451d3daff640b850909c31ab9d; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 608441de3976c526b02af4d7063093c8adf351e3; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< f7520970d5353cb1fa4d9089a1b23669c5da97fe; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 402be8a101190969fc7ff122d07e262df86e132b
- Anyone running Linux 5.8

## Description

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

drm/i915: Fix crash in auto\_retire

The retire logic uses the 2 lower bits of the pointer to the retire
function to store flags. However, the auto\_retire function is not
guaranteed to be aligned to a multiple of 4, which causes crashes as
we jump to the wrong address, for example like this:

2021-04-24T18:03:53.804300Z WARNING kernel: \[  516.876901\] invalid opcode: 0000 \[\#1\] PREEMPT SMP NOPTI
2021-04-24T18:03:53.804310Z WARNING kernel: \[  516.876906\] CPU: 7 PID: 146 Comm: kworker/u16:6 Tainted: G     U            5.4.105-13595-g3cd84167b2df \#1
2021-04-24T18:03:53.804311Z WARNING kernel: \[  516.876907\] Hardware name: Google Volteer2/Volteer2, BIOS Google\_Volteer2.13672.76.0 02/22/2021
2021-04-24T18:03:53.804312Z WARNING kernel: \[  516.876911\] Workqueue: events\_unbound active\_work
2021-04-24T18:03:53.804313Z WARNING kernel: \[  516.876914\] RIP: 0010:auto\_retire+0x1/0x20
2021-04-24T18:03:53.804314Z WARNING kernel: \[  516.876916\] Code: e8 01 f2 ff ff eb 02 31 db 48 89 d8 5b 5d c3 0f 1f 44 00 00 55 48 89 e5 f0 ff 87 c8 00 00 00 0f 88 ab 47 4a 00 31 c0 5d c3 0f \<1f\> 44 00 00 55 48 89 e5 f0 ff 8f c8 00 00 00 0f 88 9a 47 4a 00 74
2021-04-24T18:03:53.804319Z WARNING kernel: \[  516.876918\] RSP: 0018:ffff9b4d809fbe38 EFLAGS: 00010286
2021-04-24T18:03:53.804320Z WARNING kernel: \[  516.876919\] RAX: 0000000000000007 RBX: ffff927915079600 RCX: 0000000000000007
2021-04-24T18:03:53.804320Z WARNING kernel: \[  516.876921\] RDX: ffff9b4d809fbe40 RSI: 0000000000000286 RDI: ffff927915079600
2021-04-24T18:03:53.804321Z WARNING kernel: \[  516.876922\] RBP: ffff9b4d809fbe68 R08: 8080808080808080 R09: fefefefefefefeff
2021-04-24T18:03:53.804321Z WARNING kernel: \[  516.876924\] R10: 0000000000000010 R11: ffffffff92e44bd8 R12: ffff9279150796a0
2021-04-24T18:03:53.804322Z WARNING kernel: \[  516.876925\] R13: ffff92791c368180 R14: ffff927915079640 R15: 000000001c867605
2021-04-24T18:03:53.804323Z WARNING kernel: \[  516.876926\] FS:  0000000000000000(0000) GS:ffff92791ffc0000(0000) knlGS:0000000000000000
2021-04-24T18:03:53.804323Z WARNING kernel: \[  516.876928\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2021-04-24T18:03:53.804324Z WARNING kernel: \[  516.876929\] CR2: 0000239514955000 CR3: 00000007f82da001 CR4: 0000000000760ee0
2021-04-24T18:03:53.804325Z WARNING kernel: \[  516.876930\] PKRU: 55555554
2021-04-24T18:03:53.804325Z WARNING kernel: \[  516.876931\] Call Trace:
2021-04-24T18:03:53.804326Z WARNING kernel: \[  516.876935\]  \_\_active\_retire+0x77/0xcf
2021-04-24T18:03:53.804326Z WARNING kernel: \[  516.876939\]  process\_one\_work+0x1da/0x394
2021-04-24T18:03:53.804327Z WARNING kernel: \[  516.876941\]  worker\_thread+0x216/0x375
2021-04-24T18:03:53.804327Z WARNING kernel: \[  516.876944\]  kthread+0x147/0x156
2021-04-24T18:03:53.804335Z WARNING kernel: \[  516.876946\]  ? pr\_cont\_work+0x58/0x58
2021-04-24T18:03:53.804335Z WARNING kernel: \[  516.876948\]  ? kthread\_blkcg+0x2e/0x2e
2021-04-24T18:03:53.804336Z WARNING kernel: \[  516.876950\]  ret\_from\_fork+0x1f/0x40
2021-04-24T18:03:53.804336Z WARNING kernel: \[  516.876952\] Modules linked in: cdc\_mbim cdc\_ncm cdc\_wdm xt\_cgroup rfcomm cmac algif\_hash algif\_skcipher af\_alg xt\_MASQUERADE uinput snd\_soc\_rt5682\_sdw snd\_soc\_rt5682 snd\_soc\_max98373\_sdw snd\_soc\_max98373 snd\_soc\_rl6231 regmap\_sdw snd\_soc\_sof\_sdw snd\_soc\_hdac\_hdmi snd\_soc\_dmic snd\_hda\_codec\_hdmi snd\_sof\_pci snd\_sof\_intel\_hda\_common intel\_ipu6\_psys snd\_sof\_xtensa\_dsp soundwire\_intel soundwire\_generic\_allocation soundwire\_cadence snd\_sof\_intel\_hda snd\_sof snd\_soc\_hdac\_hda snd\_soc\_acpi\_intel\_match snd\_soc\_acpi snd\_hda\_ext\_core soundwire\_bus snd\_hda\_intel snd\_intel\_dspcfg snd\_hda\_codec snd\_hwdep snd\_hda\_core intel\_ipu6\_isys videobuf2\_dma\_contig videobuf2\_v4l2 videobuf2\_common videobuf2\_memops mei\_hdcp intel\_ipu6 ov2740 ov8856 at24 sx9310 dw9768 v4l2\_fwnode cros\_ec\_typec intel\_pmc\_mux roles acpi\_als typec fuse iio\_trig\_sysfs cros\_ec\_light\_prox cros\_ec\_lid\_angle cros\_ec\_sensors cros
---truncated---

## Affected and fixed versions

- Linux: \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 805c990a9c54b9451d3daff640b850909c31ab9d; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 608441de3976c526b02af4d7063093c8adf351e3; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< f7520970d5353cb1fa4d9089a1b23669c5da97fe; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 402be8a101190969fc7ff122d07e262df86e132b (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 402be8a101190969fc7ff122d07e262df86e132b 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-46976. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46976.md
Affected: Linux >= 229007e02d697b0662f85378aae53531b0dfea05, < 805c990a9c54b9451d3daff640b850909c31ab9d; >= 229007e02d697b0662f85378aae53531b0dfea05, < 608441de3976c526b02af4d7063093c8adf351e3; >= 229007e02d697b0662f85378aae53531b0dfea05, < f7520970d5353cb1fa4d9089a1b23669c5da97fe; >= 229007e02d697b0662f8537…
Fixed in: Linux 805c990a9c54b9451d3daff640b850909c31ab9d, Linux 608441de3976c526b02af4d7063093c8adf351e3, Linux 402be8a101190969fc7ff122d07e262df86e132b

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

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

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

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

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

Linux \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 805c990a9c54b9451d3daff640b850909c31ab9d; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 608441de3976c526b02af4d7063093c8adf351e3; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< f7520970d5353cb1fa4d9089a1b23669c5da97fe; \>= 229007e02d697b0662f85378aae53531b0dfea05, \< 402be8a101190969fc7ff122d07e262df86e132b; Linux 5.8.

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

Yes. Fixed in Linux 805c990a9c54b9451d3daff640b850909c31ab9d, Linux 608441de3976c526b02af4d7063093c8adf351e3, Linux 402be8a101190969fc7ff122d07e262df86e132b. Upgrade Linux to 402be8a101190969fc7ff122d07e262df86e132b or later.

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

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/805c990a9c54b9451d3daff640b850909c31ab9d>
- patch: <https://git.kernel.org/stable/c/608441de3976c526b02af4d7063093c8adf351e3>
- patch: <https://git.kernel.org/stable/c/f7520970d5353cb1fa4d9089a1b23669c5da97fe>
- patch: <https://git.kernel.org/stable/c/402be8a101190969fc7ff122d07e262df86e132b>

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

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