CVE Vulnerabilities

CVE-2021-46928

Improper Handling of Exceptional Conditions

Published: Feb 27, 2024 | Modified: Apr 10, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

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 couldnt execute an instruction due to missing execute permissions on the memory region. In this case it seems the CPU didnt 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 dont start to try to understand the various random IIR values in trap 7 dumps.

Weakness

The product does not handle or incorrectly handles an exceptional condition.

Affected Software

Name Vendor Start Version End Version
Linux_kernel Linux * 5.10.90 (excluding)
Linux_kernel Linux 5.11.0 (including) 5.15.13 (excluding)

References