-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2023.3300
                   USN-6146-1: Netatalk vulnerabilities
                                9 June 2023

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Netatalk
Publisher:         Ubuntu
Operating System:  Ubuntu
Resolution:        Patch/Upgrade
CVE Names:         CVE-2022-45188 CVE-2022-43634 CVE-2022-23125
                   CVE-2022-23124 CVE-2022-23123 CVE-2022-23122
                   CVE-2022-23121 CVE-2022-0194 CVE-2021-31439

Original Bulletin: 
   https://ubuntu.com/security/notices/USN-6146-1

Comment: CVSS (Max):  9.8 CVE-2022-43634 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
         CVSS Source: NVD
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

- --------------------------BEGIN INCLUDED TEXT--------------------

USN-6146-1: Netatalk vulnerabilities

8 June 2023

Several security issues were fixed in Netatalk.

Releases

  o Ubuntu 22.10
  o Ubuntu 22.04 LTS
  o Ubuntu 20.04 LTS
  o Ubuntu 18.04 ESM
  o Ubuntu 16.04 ESM
  o Ubuntu 14.04 ESM

Packages

  o netatalk - Apple Filing Protocol service

Details

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the DSI structures. A remote attacker could possibly
use this issue to execute arbitrary code with the privileges of the user
invoking the programs. This issue only affected Ubuntu 20.04 LTS and Ubuntu
22.04 LTS. ( CVE-2021-31439 )

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the ad_addcomment function. A remote attacker could
possibly use this issue to execute arbitrary code with root privileges.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.
( CVE-2022-0194 )

It was discovered that Netatalk did not properly handle errors when parsing
AppleDouble entries. A remote attacker could possibly use this issue to
execute arbitrary code with root privileges. This issue only affected
Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and
Ubuntu 22.04 LTS. ( CVE-2022-23121 )

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the setfilparams function. A remote attacker could
possibly use this issue to execute arbitrary code with root privileges.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.
( CVE-2022-23122 )

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the getdirparams function. A remote attacker could
possibly use this issue to execute arbitrary code with root privileges.
This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04
LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. ( CVE-2022-23123 )

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the get_finderinfo function. A remote attacker could
possibly use this issue to execute arbitrary code with root privileges.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.
( CVE-2022-23124 )

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the copyapplfile function. A remote attacker could
possibly use this issue to execute arbitrary code with root privileges.
This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04
LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. ( CVE-2022-23125 )

It was discovered that Netatalk did not properly validate the length of
user-supplied data in the dsi_writeinit function. A remote attacker could
possibly use this issue to execute arbitrary code with root privileges.
This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu
22.10. ( CVE-2022-43634 )

It was discovered that Netatalk did not properly manage memory under
certain circumstances. If a user were tricked into opening a specially
crafted .appl file, a remote attacker could possibly use this issue to
execute arbitrary code. ( CVE-2022-45188 )

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and
Universe repositories, and it is free for up to five machines.

Learn more about Ubuntu Pro

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 22.10

  o netatalk - 3.1.13~ds-2ubuntu0.22.10.1

Ubuntu 22.04

  o netatalk - 3.1.12~ds-9ubuntu0.22.04.1

Ubuntu 20.04

  o netatalk - 3.1.12~ds-4ubuntu0.20.04.1

Ubuntu 18.04

  o netatalk - 2.2.6-1ubuntu0.18.04.2+esm1
    Available with Ubuntu Pro

Ubuntu 16.04

  o netatalk - 2.2.5-1ubuntu0.2+esm1
    Available with Ubuntu Pro

Ubuntu 14.04

  o netatalk - 2.2.2-1ubuntu2.2+esm1
    Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References

  o CVE-2022-23123
  o CVE-2022-43634
  o CVE-2022-23122
  o CVE-2021-31439
  o CVE-2022-23121
  o CVE-2022-23124
  o CVE-2022-23125
  o CVE-2022-0194
  o CVE-2022-45188

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: https://auscert.org.au/gpg-key/

iQIVAwUBZIKGKskNZI30y1K9AQjxdA/8DgbuBFFZ8i7eoQzO8tnXbwO5F4ybc5MH
9keMKUWdggsk9D5Wt/oct6qI1m3johlpOdUso9qsRrgQevRJrea+LJLShGguE0NR
I9urUtjekpuN/sjV0QpyF4OCTxUmX2TkC+rTMaV5eu9f0A9yG3PCpe1+MIW6OEnQ
DYSzAlY5vfUg+2ZOy67u5EUnpZWjQsQ8CpBW+7+Ula6jPf08Sz++GiGb4rgUWfuQ
vfX7NxkNwjXqEhlc2Gv8GTbujllw25GbLSetncXMwkTr33rJ6088LzTs0XfE3m2f
GGoNMGk/HCF+zxQE/TQWSulWlA7pe/+B0878x2ud8Adegwu/6OqPK8jhJ8qgFW8V
0NB51LnUhwJXmTgCgfqeG/4rCgwgKYc0L7Qwwp671RKCdGvygvY1dLZ51G4fVxuq
IA+CN788n9lCoY31auBqYQXqw/QxlypxOFq3oxpKdfrlw5CmhLNpqtBZH7E+etcX
ir5sBZqSohkXiRvr+us07GbXZ9DtpWukXVZyVcDfPqPxJG2aLTYcOrbmWOuClwOM
7icH2jHzv7wMzawTxkdKzmmkWIOYhc/H5TVL4AHXiTfAsUbku3uidtYwCkUKGIa/
fFC87dDKuf+Y00Mm+XzS6TclP+1HP5MmCSuzJRODuhm3fDkPY8d0CL+JTU1FOzGx
lfDY2cAXWWA=
=0ArY
-----END PGP SIGNATURE-----