GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration
brew-glibc-cve-2026-0861
Vulnerability from osv_homebrew
Published
2026-06-28 21:29
Modified
2026-08-05 16:54
Summary
Integer overflow in memalign leads to heap corruption
Details

Passing too large an alignment to the memalign suite of functions (memalign, posix_memalign, aligned_alloc) in the GNU C Library version 2.30 to 2.42 may result in an integer overflow, which could consequently result in a heap corruption.

Note that the attacker must have control over both, the size as well as the alignment arguments of the memalign function to be able to exploit this. The size parameter must be close enough to PTRDIFF_MAX so as to overflow size_t along with the large alignment argument. This limits the malicious inputs for the alignment for memalign to the range [1<<62+ 1, 1<<63] and exactly 1<<63 for posix_memalign and aligned_alloc.

Typically the alignment argument passed to such functions is a known constrained quantity (e.g. page size, block size, struct sizes) and is not attacker controlled, because of which this may not be easily exploitable in practice. An application bug could potentially result in the input alignment being too large, e.g. due to a different buffer overflow or integer overflow in the application or its dependent libraries, but that is again an uncommon usage pattern given typical sources of alignments.


{
  "affected": [
    {
      "ecosystem_specific": {
        "fix": "patch",
        "patches": [
          {
            "apply": [
              "patches/any/CVE-2024-2961.patch",
              "patches/any/CVE-2024-33599.patch",
              "patches/any/CVE-2024-33600_1.patch",
              "patches/any/CVE-2024-33600_2.patch",
              "patches/any/CVE-2024-33601_33602.patch",
              "patches/any/CVE-2025-0395.patch",
              "patches/any/CVE-2025-5702.patch",
              "patches/any/CVE-2025-8058.patch",
              "patches/CVE-2025-15281.patch",
              "patches/CVE-2026-0861.patch",
              "patches/CVE-2026-0915.patch",
              "patches/CVE-2026-4046.patch",
              "patches/CVE-2026-5450.patch",
              "patches/CVE-2026-5928.patch",
              "patches/CVE-2026-6238-pre1.patch",
              "patches/CVE-2026-6238-pre2.patch",
              "patches/CVE-2026-6238-pre3.patch",
              "patches/CVE-2026-6238-pre4.patch",
              "patches/CVE-2026-5435.patch",
              "patches/CVE-2026-6238-1.patch",
              "patches/CVE-2026-6238-2.patch",
              "patches/CVE-2026-443x.patch"
            ],
            "type": "backport",
            "url": "https://archive.ubuntu.com/ubuntu/pool/main/g/glibc/glibc_2.39-0ubuntu8.8.debian.tar.xz"
          }
        ]
      },
      "package": {
        "ecosystem": "Homebrew",
        "name": "glibc",
        "purl": "pkg:brew/glibc"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.39"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "source": "generated"
  },
  "details": "Passing too large an alignment to the memalign suite of functions (memalign, posix_memalign, aligned_alloc) in the GNU C Library version 2.30 to 2.42 may result in an integer overflow, which could consequently result in a heap corruption.\n\nNote that the attacker must have control over both, the size as well as the alignment arguments of the memalign function to be able to exploit this.  The size parameter must be close enough to PTRDIFF_MAX so as to overflow size_t along with the large alignment argument.  This limits the malicious inputs for the alignment for memalign to the range [1\u003c\u003c62+ 1, 1\u003c\u003c63] and exactly 1\u003c\u003c63 for posix_memalign and aligned_alloc.\n\nTypically the alignment argument passed to such functions is a known constrained quantity (e.g. page size, block size, struct sizes) and is not attacker controlled, because of which this may not be easily exploitable in practice.  An application bug could potentially result in the input alignment being too large, e.g. due to a different buffer overflow or integer overflow in the application or its dependent libraries, but that is again an uncommon usage pattern given typical sources of alignments.",
  "id": "BREW-glibc-CVE-2026-0861",
  "modified": "2026-08-05T16:54:10Z",
  "published": "2026-06-28T21:29:54Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/01/16/5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0861.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0861"
    },
    {
      "type": "ADVISORY",
      "url": "https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0001"
    },
    {
      "type": "REPORT",
      "url": "https://sourceware.org/bugzilla/show_bug.cgi?id=33796"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Integer overflow in memalign leads to heap corruption",
  "upstream": [
    "CVE-2026-0861"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…