CVE-2021-46928 parisc: Clear stale IIR value on instruction access rights trap
The Linux kernel failed to clear stale register values during instruction access traps, potentially leaking random memory data in crash dumps.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-46928?
CVE-2021-46928 is a medium-severity vulnerability in Linux kernel, published on 27 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
parisc: Clear stale IIR value on instruction access rights trap
When a trap 7 (Instruction access rights) occurs, this means the CPU couldn't execute an instruction due to missing execute permissions on the memory region. In this case it seems the CPU didn't even fetched the instruction from memory and thus did not store it in the cr19 (IIR) register before calling the trap handler. So, the trap handler will find some random old stale value in cr19.
This patch simply overwrites the stale IIR value with a constant magic "bad food" value (0xbaadf00d), in the hope people don't start to try to understand the various random IIR values in trap 7 dumps.
Weakness: CWE-755
Which versions are affected by CVE-2021-46928?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-46928?
Apply the vendor's patch.
Is CVE-2021-46928 being exploited?
There is no known exploitation of CVE-2021-46928 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-46928, GHSA-cj4f-m7fj-58gv, UBUNTU-CVE-2021-46928.