CVE-2021-46997 Vulnerability Analysis & Exploit Details

CVE-2021-46997
Vulnerability Scoring

5.5
/10
Significant Risk

Security assessments indicate that CVE-2021-46997 presents a notable risk, potentially requiring prompt mitigation.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2021-46997 Details

Status: Analyzed

Last updated: 🕝 24 Dec 2024, 14:42 UTC
Originally published on: 🕘 28 Feb 2024, 09:15 UTC

Time between publication and last update: 300 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2021-46997 Vulnerability Summary

CVE-2021-46997: In the Linux kernel, the following vulnerability has been resolved: arm64: entry: always set GIC_PRIO_PSR_I_SET during entry Zenghui reports that booting a kernel with "irqchip.gicv3_pseudo_nmi=1" on the command line hits a warning during kernel entry, due to the way we manipulate the PMR. Early in the entry sequence, we call lockdep_hardirqs_off() to inform lockdep that interrupts have been masked (as the HW sets DAIF wqhen entering an exception). Architecturally PMR_EL1 is not affected by exception entry, and we don't set GIC_PRIO_PSR_I_SET in the PMR early in the exception entry sequence, so early in exception entry the PMR can indicate that interrupts are unmasked even though they are masked by DAIF. If DEBUG_LOCKDEP is selected, lockdep_hardirqs_off() will check that interrupts are masked, before we set GIC_PRIO_PSR_I_SET in any of the exception entry paths, and hence lockdep_hardirqs_off() will WARN() that something is amiss. We can avoid this by consistently setting GIC_PRIO_PSR_I_SET during exception entry so that kernel code sees a consistent environment. We must also update local_daif_inherit() to undo this, as currently only touches DAIF. For other paths, local_daif_restore() will update both DAIF and the PMR. With this done, we can remove the existing special cases which set this later in the entry code. We always use (GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET) for consistency with local_daif_save(), as this will warn if it ever encounters (GIC_PRIO_IRQOFF | GIC_PRIO_PSR_I_SET), and never sets this itself. This matches the gic_prio_kentry_setup that we have to retain for ret_to_user. The original splat from Zenghui's report was: | DEBUG_LOCKS_WARN_ON(!irqs_disabled()) | WARNING: CPU: 3 PID: 125 at kernel/locking/lockdep.c:4258 lockdep_hardirqs_off+0xd4/0xe8 | Modules linked in: | CPU: 3 PID: 125 Comm: modprobe Tainted: G W 5.12.0-rc8+ #463 | Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015 | pstate: 604003c5 (nZCv DAIF +PAN -UAO -TCO BTYPE=--) | pc : lockdep_hardirqs_off+0xd4/0xe8 | lr : lockdep_hardirqs_off+0xd4/0xe8 | sp : ffff80002a39bad0 | pmr_save: 000000e0 | x29: ffff80002a39bad0 x28: ffff0000de214bc0 | x27: ffff0000de1c0400 x26: 000000000049b328 | x25: 0000000000406f30 x24: ffff0000de1c00a0 | x23: 0000000020400005 x22: ffff8000105f747c | x21: 0000000096000044 x20: 0000000000498ef9 | x19: ffff80002a39bc88 x18: ffffffffffffffff | x17: 0000000000000000 x16: ffff800011c61eb0 | x15: ffff800011700a88 x14: 0720072007200720 | x13: 0720072007200720 x12: 0720072007200720 | x11: 0720072007200720 x10: 0720072007200720 | x9 : ffff80002a39bad0 x8 : ffff80002a39bad0 | x7 : ffff8000119f0800 x6 : c0000000ffff7fff | x5 : ffff8000119f07a8 x4 : 0000000000000001 | x3 : 9bcdab23f2432800 x2 : ffff800011730538 | x1 : 9bcdab23f2432800 x0 : 0000000000000000 | Call trace: | lockdep_hardirqs_off+0xd4/0xe8 | enter_from_kernel_mode.isra.5+0x7c/0xa8 | el1_abort+0x24/0x100 | el1_sync_handler+0x80/0xd0 | el1_sync+0x6c/0x100 | __arch_clear_user+0xc/0x90 | load_elf_binary+0x9fc/0x1450 | bprm_execve+0x404/0x880 | kernel_execve+0x180/0x188 | call_usermodehelper_exec_async+0xdc/0x158 | ret_from_fork+0x10/0x18

Assessing the Risk of CVE-2021-46997

Access Complexity Graph

The exploitability of CVE-2021-46997 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2021-46997

CVE-2021-46997 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2021-46997, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2021-46997, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2021-46997 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2021-46997 poses no threat to data integrity.
  • Availability: High
    CVE-2021-46997 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.042% (probability of exploit)

EPSS Percentile: 5.02% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 94.98% of others.

CVE-2021-46997 References

External References

CWE Common Weakness Enumeration

NVD-CWE-noinfo

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:5.10:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.0:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.0:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.0:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.0:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.0:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.0:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.0:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.0:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.0:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.0:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.0:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.0:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.21:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.21:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.22:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.22:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.23:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.23:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.24:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.24:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.25:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.25:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.26:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.26:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.27:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.27:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.28:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.28:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.29:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.29:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.30:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.30:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.31:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.31:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.32:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.32:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.33:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.33:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.34:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.34:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.35:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.35:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.36:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.36:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.37:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.37:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.21:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.21:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.4:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-46997: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-2129 – A vulnerability was found in Mage AI 0.9.75. It has been classified as problematic. This affects an unknown part. The manipulation leads to insecur...
  • CVE-2025-2127 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla. It has been classified as problematic. Affected is an unknown function of th...
  • CVE-2025-2126 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla and classified as critical. This issue affects some unknown processing of the...
  • CVE-2025-2125 – A vulnerability has been found in Control iD RH iD 25.2.25.0 and classified as problematic. This vulnerability affects unknown code of the file /v2...
  • CVE-2025-2124 – A vulnerability, which was classified as problematic, was found in Control iD RH iD 25.2.25.0. This affects an unknown part of the file /v2/custome...