Lucene search

K
cvelistLinuxCVELIST:CVE-2021-46928
HistoryFeb 27, 2024 - 9:43 a.m.

CVE-2021-46928 parisc: Clear stale IIR value on instruction access rights trap

2024-02-2709:43:57
Linux
www.cve.org
linux kernel
parisc
instruction access rights
trap
vulnerability
memory region
cpu
patch

5.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/parisc/kernel/traps.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "d01e9ce1af61",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "e96373f0a5f4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "484730e5862f",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/parisc/kernel/traps.c"
    ],
    "versions": [
      {
        "version": "5.10.90",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.13",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

5.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%