VYPR
Critical severityNVD Advisory· Published Feb 14, 2022· Updated Aug 3, 2024

CVE-2022-24988

CVE-2022-24988

Description

An off-by-one buffer overflow in galois_2p8's PrimitivePolynomialField::new allows memory corruption; fixed in version 0.1.2.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

An off-by-one buffer overflow in galois_2p8's PrimitivePolynomialField::new allows memory corruption; fixed in version 0.1.2.

Vulnerability

The vulnerability is an off-by-one buffer overflow in the PrimitivePolynomialField::new function of the galois_2p8 crate (versions before 0.1.2). The function writes one byte past the allocated vector, causing a buffer overflow [1][2][3]. The affected versions are all prior to 0.1.2.

Exploitation

An attacker would need to trigger the PrimitivePolynomialField::new constructor with a crafted input that causes the off-by-one write. The exact conditions are not detailed, but since it's a library function, exploitation likely requires a program using the library to pass malicious data to this constructor. No authentication or network position is specified; it depends on how the library is used.

Impact

Successful exploitation could lead to memory corruption, potentially allowing an attacker to overwrite adjacent memory. The impact may include denial of service or arbitrary code execution depending on the context. The CHANGELOG notes the fix prevents writing one byte past the allocated vec [3].

Mitigation

The fix was released in version 0.1.2 on 2022-02-13 [3]. Users should update to 0.1.2 or later immediately. No workarounds are mentioned. The vulnerability is not listed on CISA's Known Exploited Vulnerabilities catalog.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
galois_2p8crates.io
< 0.1.20.1.2

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.