CVE-2022-50231
Description
A flaw was found in the Linux kernel's arm64/poly1305 cryptographic module. A local user could exploit this vulnerability by providing specially crafted input during the initialization of the neon_poly1305_blocks function. This out-of-bounds read could lead to a denial of service (DoS) or potentially result in information disclosure.
Statement
A moderate out-of-bounds read flaw was found in the arm64 NEON implementation of the Poly1305 hash algorithm in the Linux kernel (arch/arm64/crypto/poly1305-glue.c), affecting 64-bit ARM (aarch64) systems. When neon_poly1305_blocks() is called with both the r[] and s[] state uninitialized, it treats the first input block as 32 bytes, reading 16 bytes for the key and a further 16 bytes for s[] even though only 16 bytes are actually consumed for initialization, so the function can read past the end of the input buffer. A local user able to pass specially crafted, shorter-than-expected input to the Poly1305 hash, for example through the AF_ALG setsockopt interface as reached via the ESSIV skcipher setkey path, could trigger this out-of-bounds read to cause a denial of service or potentially disclose small amounts of kernel memory. Red Hat rated this flaw Moderate severity (CVSS 6.1, AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H), while NIST and CVE.org scored it 7.1 (Important) with a higher confidentiality impact; the difference reflects Red Hat assessing the confidentiality impact as low rather than high. Per the current assessment, the kernel and kernel-rt packages in Red Hat Enterprise Linux 9 and Red Hat In-Vehicle OS 1 are listed as affected, while Red Hat Enterprise Linux 6, 7, 8, and 10, and the Hosted OpenShift offerings are not affected because the vulnerable code is not present in those kernels.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 6.1 | 7.1 | 7.1 |
| Attack Vector | Local | Local | Local |
| Attack Complexity | Low | Low | Low |
| Privileges Required | Low | Low | Low |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | Low | High | High |
| Integrity Impact | None | None | None |
| Availability Impact | High | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.
Confidentiality
Technical Impact: Bypass Protection Mechanism
Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.
Other
Technical Impact: Varies by Context
The read operation could produce other undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.