cve.bz

CVE-2024-38440 netatalk netatalk: Off-by-one Error

7.5 highExploit referenceEPSS 1.4%

High (7.5) in netatalk netatalk. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
Netatalk before 3.2.1 has an off-by-one error, and resultant heap-based buffer overflow and segmentation violation, because of incorrectly using FPLoginExt in BN_bin2bn in etc/uams/uams_dhx_pam.c. The original issue 1097 report stated: 'The latest version of Netatalk (v3.2.0) contains a security vulnerability. This vulnerability arises due to a lack of validation for the length field after parsing user-provided data, leading to an out-of-bounds heap write of one byte (\0). Under specific configurations, this can result in reading metadata of the next heap block, potentially causing a Denial of Service (DoS) under certain heap layouts or with ASAN enabled. ... The vulnerability is located in the FPLoginExt operation of Netatalk, in the BN_bin2bn function found in /etc/uams/uams_dhx_pam.c ... if (!(bn = BN_bin2bn((unsigned char *)ibuf, KEYSIZE, NULL))) ... threads ... [#0] Id 1, Name: "afpd", stopped 0x7ffff4304e58 in ?? (), reason: SIGSEGV ... [#0] 0x7ffff4304e58 mov BYTE PTR [r14+0x8], 0x0 ... mov rdx, QWORD PTR [rsp+0x18] ... afp_login_ext(obj=<optimized out>, ibuf=0x62d000010424 "", ibuflen=0xffffffffffff0015, rbuf=<optimized out>, rbuflen=<optimized out>) ... afp_over_dsi(obj=0x5555556154c0 <obj>).' 2.4.1 and 3.1.19 are also fixed versions.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.4% (up from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-08-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-38440 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38440?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38440?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-38440 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
netatalk:netatalkfrom 2.0.0 before 2.4.1
netatalk:netatalkfrom 3.0 before 3.1.19
netatalk:netatalk3.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11netatalk3.1.12~ds-8+deb11u2DLA-3968-1
Debian13, 14netatalk3.1.18~ds-2DEBIAN-CVE-2024-38440
Ubuntu20.04:LTSnetatalk3.1.12~ds-4ubuntu0.20.04.4UBUNTU-CVE-2024-38440 USN-7347-1
Ubuntu22.04:LTSnetatalk3.1.12~ds-9ubuntu0.22.04.4UBUNTU-CVE-2024-38440 USN-7347-1
UbuntuPro:14.04:LTSnetatalk2.2.2-1ubuntu2.2+esm2UBUNTU-CVE-2024-38440 USN-7347-1
UbuntuPro:16.04:LTSnetatalk2.2.5-1ubuntu0.2+esm2UBUNTU-CVE-2024-38440 USN-7347-1
UbuntuPro:18.04:LTSnetatalk2.2.6-1ubuntu0.18.04.2+esm2UBUNTU-CVE-2024-38440 USN-7347-1
UbuntuPro:24.04:LTSnetatalk3.1.18~ds-1ubuntu0.1~esm1UBUNTU-CVE-2024-38440 USN-7347-1
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5netatalk3.1.18-3.25.1SUSE-SU-2024:2301-1
Alpinev3.20, v3.21, v3.22 and 2 morenetatalk3.1.19-r0ALPINE-CVE-2024-38440

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · Alpine.

References

Check your stackJSON