CVE Vulnerabilities

CVE-2021-45261

Release of Invalid Pointer or Reference

Published: Dec 22, 2021 | Modified: Dec 28, 2021
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

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

Name Vendor Start Version End Version
Patch Gnu 2.7 (including) 2.7 (including)
Patch Ubuntu bionic *
Patch Ubuntu hirsute *
Patch Ubuntu impish *
Patch Ubuntu kinetic *
Patch Ubuntu lunar *
Patch Ubuntu mantic *
Patch Ubuntu trusty *
Patch Ubuntu xenial *

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