Heap-based Buffer Overflow Affecting ntfs-3g package, versions <2026.2.25-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.02% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE320-NTFS3G-16336345
  • published1 May 2026
  • disclosed21 Apr 2026

Introduced: 21 Apr 2026

NewCVE-2026-40706  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade Alpine:3.20 ntfs-3g to version 2026.2.25-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ntfs-3g package and not the ntfs-3g package as distributed by Alpine. See How to fix? for Alpine:3.20 relevant fixed versions and status.

In NTFS-3G 2022.10.3 before 2026.2.25, a heap buffer overflow exists in ntfs_build_permissions_posix() in acls.c that allows an attacker to corrupt heap memory in the SUID-root ntfs-3g binary by crafting a malicious NTFS image. The overflow is triggered on the READ path (stat, readdir, open) when processing a security descriptor with multiple ACCESS_DENIED ACEs containing WRITE_OWNER from distinct group SIDs.

CVSS Base Scores

version 3.1