CVE-2024-38440: Buffer Overflow

Published Jun 16, 2024
·
Updated

Last updated 12 March 2025

Other sources

Netatalk 3.2.0 has an off-by-one error, and resultant heap-based buffer overflow and segmentation violation, because of incorrectly using FPLoginExt in BNbin2bn in etc/uams/uamsdhxpam.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 BNbin2bn function found in /etc/uams/uamsdhxpam.c ... if (!(bn = BNbin2bn((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] ... afploginext(obj=<optimized out>, ibuf=0x62d000010424 "", ibuflen=0xffffffffffff0015, rbuf=<optimized out>, rbuflen=<optimized out>) ... afpoverdsi(obj=0x5555556154c0 <obj>).'

Launchpad

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 BNbin2bn in etc/uams/uamsdhxpam.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 BNbin2bn function found in /etc/uams/uamsdhxpam.c ... if (!(bn = BNbin2bn((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] ... afploginext(obj=<optimized out>, ibuf=0x62d000010424 "", ibuflen=0xffffffffffff0015, rbuf=<optimized out>, rbuflen=<optimized out>) ... afpoverdsi(obj=0x5555556154c0 <obj>).' 2.4.1 and 3.1.19 are also fixed versions.

NVD

Affected Software

6 affected componentsFixes available
Netatalk<3.2.1
Netatalk
debian/netatalk<=3.1.12~ds-8+deb11u1
3.1.12~ds-8+deb11u24.1.2~ds-4
Netatalk>=2.0.0<2.4.1
Netatalk>=3.0<3.1.19
Netatalk=3.2.0

Event History

Jun 16, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
Affected Software
Mar 12, 2025
Data Sourced
via Launchpad·04:39 PM
Description
Mar 16, 2025
Data Sourced
via Ubuntu·04:39 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-38440?

CVE-2024-38440 is classified as a high severity vulnerability due to its potential for causing heap-based buffer overflow and segmentation violations.

2

How do I fix CVE-2024-38440?

To mitigate CVE-2024-38440, upgrade to Netatalk version 3.2.1 or later.

3

What software is affected by CVE-2024-38440?

CVE-2024-38440 affects Netatalk versions prior to 3.2.1 and those between 2.4.1 and 3.1.19.

4

What type of vulnerability is CVE-2024-38440?

CVE-2024-38440 is an off-by-one error that leads to a heap-based buffer overflow.

5

What are the consequences of exploiting CVE-2024-38440?

Exploiting CVE-2024-38440 may lead to arbitrary code execution, data corruption, or denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203