CVE Vulnerabilities

CVE-2021-45261

Release of Invalid Pointer or Reference

Published: Dec 22, 2021 | Modified: Nov 21, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.5 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
NEGLIGIBLE
root.io logo minimus.io logo echo.ai logo

An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.

Weakness

The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.

Affected Software

NameVendorStart VersionEnd Version
PatchGnu2.7 (including)2.7 (including)
PatchUbuntubionic*
PatchUbuntufocal*
PatchUbuntuhirsute*
PatchUbuntuimpish*
PatchUbuntukinetic*
PatchUbuntulunar*
PatchUbuntumantic*
PatchUbuntuoracular*
PatchUbuntuplucky*
PatchUbuntutrusty*
PatchUbuntutrusty/esm*
PatchUbuntuxenial*

Extended Description

This weakness can take several forms, such as:

Potential Mitigations

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, glibc in Linux provides protection against free of invalid pointers.

References