Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 881259 (CVE-2022-45188)

Summary: <net-fs/netatalk-3.1.17: remote code execution
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: blocker CC: maintainer-needed, Xeha
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=915354
Whiteboard: B0 [glsa+]
Package list:
Runtime testing required: ---
Bug Depends on: 915632    
Bug Blocks:    

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-11-13 23:07:55 UTC
CVE-2022-45188:

Netatalk through 3.1.13 has an afp_getappl heap-based buffer overflow resulting in code execution via a crafted .appl file. This provides remote root access on some platforms such as FreeBSD (used for TrueNAS).

These are referenced:

https://netatalk.sourceforge.io/3.1/ReleaseNotes3.1.13.html
https://netatalk.sourceforge.io/3.1/ReleaseNotes3.1.14.html
https://rushbnt.github.io/bug%20analysis/netatalk-0day/

But I don't see any mention of this CVE in any of them, and the 3.1.14
release notes URL is a 404. Not sure what's going on here.
Comment 1 Hans de Graaff gentoo-dev Security 2023-10-04 13:59:24 UTC
This is fixed in 3.1.15: https://github.com/Netatalk/netatalk/releases/tag/netatalk-3-1-15
Comment 2 Larry the Git Cow gentoo-dev 2023-10-04 17:03:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b4d537e4b7ebb3ea8a61abfff6fe52d4eadc99

commit 53b4d537e4b7ebb3ea8a61abfff6fe52d4eadc99
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2023-10-04 17:02:00 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-10-04 17:03:05 +0000

    net-fs/netatalk: add 3.1.17
    
    Bug: https://bugs.gentoo.org/837623
    Bug: https://bugs.gentoo.org/881259
    Closes: https://bugs.gentoo.org/829098
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 net-fs/netatalk/Manifest                           |   1 +
 .../netatalk-3.1.17-disable-ld-library-path.patch  |  34 ++++
 net-fs/netatalk/files/netatalk-3.1.17-gentoo.patch | 112 ++++++++++++++
 net-fs/netatalk/netatalk-3.1.17.ebuild             | 172 +++++++++++++++++++++
 4 files changed, 319 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2023-11-01 14:47:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=c9c5667418b482993cc73092e63caaffa8554c8f

commit c9c5667418b482993cc73092e63caaffa8554c8f
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2023-11-01 14:46:24 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-11-01 14:46:58 +0000

    [ GLSA 202311-02 ] Netatalk: Multiple Vulnerabilities including root remote code execution
    
    Bug: https://bugs.gentoo.org/837623
    Bug: https://bugs.gentoo.org/881259
    Bug: https://bugs.gentoo.org/915354
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 glsa-202311-02.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)