#1154946 shadow: newgidmap: Use openat2(2) for safety, Drop fd:N

Package:
src:shadow
Source:
src:shadow
Submitter:
Salvatore Bonaccorso
Date:
2026-11-23 09:21:02 UTC
Severity:
normal
Tags:
#1154946#5
Date:
2026-11-23 06:22:56 UTC
From:
To:
Hi

From https://www.openwall.com/lists/oss-security/2026/11/22/12
newgidmap has a protected-file prefix overwrite.

https://gist.github.com/DicksonWu654/cdad661068d6a50da475aac57a9f07f2

Fixed by: https://github.com/shadow-maint/shadow/commit/1112ed7e741d4db15272d0fee910a5c3360c3457 (4.20.4)
Fixed by: https://github.com/shadow-maint/shadow/commit/ce55bdb26c42939b4c71068f92d83efe72bd64e4 (4.20.4)

Regards,
Salvatore

#1154946#10
Date:
2026-11-23 09:20:29 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
shadow, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1154946@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@debian.org> (supplier of updated shadow package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 23 Nov 2026 09:59:39 +0100
Source: shadow
Architecture: source
Version: 1:4.20.4-1
Distribution: unstable
Urgency: medium
Maintainer: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 1154946
Changes:
 shadow (1:4.20.4-1) unstable; urgency=medium
 .
   * New upstream version 4.20.4,
     fixing security issue in newgidmap.
https://www.openwall.com/lists/oss-security/2026/11/22/12
     (Closes: #1154946)
Checksums-Sha1:
 b0661a73ff7284ba57c2adec72e47234a105212a 2252 shadow_4.20.4-1.dsc
 a30dc44b54f6682af92bc11b0d87ab21f874b906 2315244 shadow_4.20.4.orig.tar.xz
 37664c5027a64b7797ffe697158f13832409c7ef 833 shadow_4.20.4.orig.tar.xz.asc
 03d7df4f0f48c5dec863802c78727567cfe38c31 172892 shadow_4.20.4-1.debian.tar.xz
 46df5827d3cb2bafe54fa88a77358cd64071e350 8668 shadow_4.20.4-1_arm64.buildinfo
Checksums-Sha256:
 52b79109c7cdf2d67f15dcfc1d151858589bb148bc63fef780a4a88b74bc9aed 2252 shadow_4.20.4-1.dsc
 639d03cd7821b4086deba50485a1b8041acbb0d1d3c33c20ebd4708e0eeb9bc7 2315244 shadow_4.20.4.orig.tar.xz
 0972fcfd01aa7a9042900d9247eeaf3a10c8e9ac3aa36d91b499017cfb8e5a82 833 shadow_4.20.4.orig.tar.xz.asc
 6e766fc3a663c369b712cef6b4acd1cf130fc50a87fa0798d1ed0f2815596562 172892 shadow_4.20.4-1.debian.tar.xz
 8c5bd0aa7a6d4104cfee152d2148686800dd5edd38bd1322fe6fb76613534438 8668 shadow_4.20.4-1_arm64.buildinfo
Files:
 0e17a1a819ccd66980b75ac53426bc3c 2252 admin required shadow_4.20.4-1.dsc
 afcc4fb5b6ddce28ba20fc7df480670b 2315244 admin required shadow_4.20.4.orig.tar.xz
 7efa5cc57e08b6aefd9bc03360f95cdf 833 admin required shadow_4.20.4.orig.tar.xz.asc
 a9ec829526049496fb90d0bc04d601dd 172892 admin required shadow_4.20.4-1.debian.tar.xz
 716ef2b5ea8272818c490aeaea6df9c8 8668 admin required shadow_4.20.4-1_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSAaWBt6yRrKLK4+bRHi2NEKKNrcgUCawQCEAAKCRBHi2NEKKNr
cqKOAQDMXpDCHnstPOLLdj6Ibli3aeBZoDtNhHlKQpa4GDuA6gD+Jzi6uOCY7j+f
v+Xi7LTtBEC+7Dbv5f8nsnP8J6BDUgA=
=M339
-----END PGP SIGNATURE-----