#1148985 wpa: wpa_config_write() follows symlinks (no O_NOFOLLOW) -> arbitrary root file overwrite by a netdev-group user

Package:
src:wpa
Source:
src:wpa
Submitter:
Salvatore Bonaccorso
Date:
2026-10-31 20:39:02 UTC
Severity:
normal
Tags:
#1148985#14
Date:
2026-09-26 12:54:58 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for wpa (versioned as 2:2.10-25.1) but I have not
yet uploaded it to any delayed queue, will follow up later on this
(and doing the same changes for trixie). Here is already the proposed
debdiff.

Regards,
Salvatore

#1148985#21
Date:
2026-09-26 20:30:51 UTC
From:
To:
Hi,

One reporter of this issue will test the change, so I'm holding back
the NMU proposal and have not yet done any delayed upload for
unstable.  The respective change for trixie-security is ready as well.

Regards,
Salvatore

#1148985#26
Date:
2026-09-27 12:58:33 UTC
From:
To:
Hello,

Thanks for the patches. If you hear more from the reporter, please let me know.

#1148985#31
Date:
2026-10-04 18:31:34 UTC
From:
To:
Hi Andrej,

It is not yet enough. Please hold back yet a DLA update. I will
followup once we know more, so far the patchset is mostly good but
missed one aspect.

Regards,
Salvatore

#1148985#36
Date:
2026-10-31 20:36:54 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
wpa, 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 1148985@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrej Shadura <andrewsh@debian.org> (supplier of updated wpa 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: Sat, 31 Oct 2026 21:07:44 +0100
Source: wpa
Architecture: source
Version: 2:2.11-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Networking Team <team+networking@tracker.debian.org>
Changed-By: Andrej Shadura <andrewsh@debian.org>
Closes: 1148985
Changes:
 wpa (2:2.11-6) unstable; urgency=medium
 .
   [ Salvatore Bonaccorso ]
   * Honor permissions from the wpa_supplicant configuration target file
     (Closes: #1148985)
   * Use umask to limit access to temporary wpa_supplicant configuration file
     (Closes: #1148985)
   * Remove alternative wpa_config_write() path on failed memory allocation
     (Closes: #1148985)
   * Remove the temporary wpa_supplicant config file in error case
     (Closes: #1148985)
   * Use a random suffix in the temporary wpa_supplicant configuration file
     (Closes: #1148985)
   * Ensure the temporary config file gets created and is not a symlink
     (Closes: #1148985)
   * Verify that fclose() succeeds on temporary configuration file
     (Closes: #1148985)
Checksums-Sha1:
 4d80d2bbcf9059bffcee62b8dd46c8a7ca02ab95 2909 wpa_2.11-6.dsc
 9d665a7c06ee5d0ba6c6b1756953a650ce953375 102584 wpa_2.11-6.debian.tar.xz
 a7f4949326ca4f385a0ce39a9bc3c61b1fceae47 9087600 wpa_2.11-6.git.tar.xz
 75c6bc2ea2cca0b6636bc72345c114263d37f0b5 17719 wpa_2.11-6_source.buildinfo
Checksums-Sha256:
 f71e4373f113195fedf7aa56cc748a7e2b68099bf94badde51d41b401d401bde 2909 wpa_2.11-6.dsc
 0ea60a461939db652cd8a8106a515685fa1f3c6f662eee1a7f5a099459e2ea26 102584 wpa_2.11-6.debian.tar.xz
 52c771bb8031b66a972af872e1c3492a59d565a14a82c62b86d0acd02a184e3e 9087600 wpa_2.11-6.git.tar.xz
 a163b7961672c3096bb0e2b9cc74c26b30e7475f9a81a190580e205464f28810 17719 wpa_2.11-6_source.buildinfo
Files:
 e9b794151904378f7b5c76ad22b3f124 2909 net optional wpa_2.11-6.dsc
 fc8425f1989fa289ada8d1909a54ae9e 102584 net optional wpa_2.11-6.debian.tar.xz
 9b5925a77472765270d300cf353f340f 9087600 net optional wpa_2.11-6.git.tar.xz
 e451a771c918d7248921c23c57d1d780 17719 net optional wpa_2.11-6_source.buildinfo
Git-Tag-Info: tag=925fd5981c4857316ecc26230e23454c6a6ba8a5 fp=83dcd17f44b22cc83656eda1e8446b4ac8c77261
Git-Tag-Tagger: Andrej Shadura <andrew.shadura@collabora.co.uk>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrmSx4ACgkQYG0ITkaD
wHnn7RAA60nwXYO8HAyl0YtEbKpZCfEQaXd1f4ZU55ZD0A3VKlmnqESAvt9Qg0aE
khxxRrIJZ80TX61Zv6EGgJK1PtJihgfonRVJPYy1q7xD/lClRxtiKK1rE29OerMW
IJb4fheUc4ZWlRn87Yp1VYO9emMZ3fRlXdXULZIBh2bGw0eIikZODdYMfn/TjxjA
ly513Xesva3Ld/g+dqkD/73F8BhvF/WHlqq4nkCbIIQxhOmrLOhK5wJ0GlsugeJt
c4mv2GBK/41BOThQH5pJITJIqMmCHhD4a+mszwsUIMvn5e4gxWd1iz2AOjFJbUZD
ULwTxbC6xtzWfkRyhpSedvaINSA9RNUM41oXJpUiyjxQr3ADGLOmL8JwdoPw9UVo
BfkJ0f/zb3DcyGSBG9TlY32V8b+0KEARYhpuzjj7Vmh0WILql6mZdndEmYF/hUVY
X/cyva8rPaSizx4vJZhQg14gRwT/NonofQ9xjR6UMJdswiSuWLJAwJ62gqIpH83H
q0aNRDzWYSpfE+n0BoBlJ/Jl5NIFrKA/XhqM8N3qRblBilDQ0n7l52RjR8VW6dZN
HqrzTwOp/tpyB2VZuzcezpu9ZBNCME71siDSWJeJ8ohUthLhZS3RfQPhs1okeUWq
/2l1T/qKdQAAzCgKGj4waRcwBbtiBLIISlIgkgJf5XRCN2/9hBc=
=fv15
-----END PGP SIGNATURE-----

#1148985#41
Date:
2026-10-31 20:37:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
wpa, 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 1148985@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrej Shadura <andrewsh@debian.org> (supplier of updated wpa 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: Sat, 31 Oct 2026 21:17:36 +0100
Source: wpa
Architecture: source
Version: 2:2.11-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Networking Team <team+networking@tracker.debian.org>
Changed-By: Andrej Shadura <andrewsh@debian.org>
Closes: 1148985
Changes:
 wpa (2:2.11-7) unstable; urgency=medium
 .
   * Start activated wpa_supplicant with -x/etc/wpa_supplicant/
     (Closes: #1148985)
 .
 wpa (2:2.11-6) unstable; urgency=medium
 .
   [ Salvatore Bonaccorso ]
   * Honor permissions from the wpa_supplicant configuration target file
     (Closes: #1148985)
   * Use umask to limit access to temporary wpa_supplicant configuration file
     (Closes: #1148985)
   * Remove alternative wpa_config_write() path on failed memory allocation
     (Closes: #1148985)
   * Remove the temporary wpa_supplicant config file in error case
     (Closes: #1148985)
   * Use a random suffix in the temporary wpa_supplicant configuration file
     (Closes: #1148985)
   * Ensure the temporary config file gets created and is not a symlink
     (Closes: #1148985)
   * Verify that fclose() succeeds on temporary configuration file
     (Closes: #1148985)
 .
   [ Andrej Shadura ]
   * Add wpa_supplicant option to restrict configuration file location
     (Closes: #1148985)
Checksums-Sha1:
 1507a4e1fa8ff5bde4b33ea4e98faad9231f18c5 2909 wpa_2.11-7.dsc
 8ff18485fe5277e2d75b44b25ea148968a619d6c 102748 wpa_2.11-7.debian.tar.xz
 ffcaf64e15eabacd2830d09705ee86376c962d57 9092424 wpa_2.11-7.git.tar.xz
 77ec6575b3b00bf0eb73bb15600c1f788e7c7cbc 17719 wpa_2.11-7_source.buildinfo
Checksums-Sha256:
 cb260715e3c5941ff8f3a14156b6d89a2481e14c9816517827ee8ebfd3f1e37c 2909 wpa_2.11-7.dsc
 9adebdabf342e3d13853dd051cf718457b001d790d3f12a6ade39acbfd1c6886 102748 wpa_2.11-7.debian.tar.xz
 0c7a9ba87f2b5e7fa8b285060e1d0a458b4c9765e0dacc61d8159eb95e51daaf 9092424 wpa_2.11-7.git.tar.xz
 1b2a4e8ecb2f952341fef2ce1c64513c5c15d229848324305689c6b09cb8d816 17719 wpa_2.11-7_source.buildinfo
Files:
 f8b3c50d8c4e38e8c7f6051dbf575f2b 2909 net optional wpa_2.11-7.dsc
 b2fbe6572103a5eba17ea239bf50cef7 102748 net optional wpa_2.11-7.debian.tar.xz
 435379d6b71d69dd5e5c4acc0b3e1950 9092424 net optional wpa_2.11-7.git.tar.xz
 82ffb428312bada2cb3db1408cebb0ec 17719 net optional wpa_2.11-7_source.buildinfo
Git-Tag-Info: tag=ce02a5f0f0035a0821d9b1909941b29d6ffcc8fc fp=83dcd17f44b22cc83656eda1e8446b4ac8c77261
Git-Tag-Tagger: Andrej Shadura <andrew.shadura@collabora.co.uk>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrmTWYACgkQYG0ITkaD
wHmajQ/+KU7+UeeXx8WSgeviaeJBnmDProScucYSD+Nohou2KUK7k20Ir5cFCAD3
hJB/FHhoZwqQgMySowhDeIHMxkeGH29fs/nXGg1eMML3o+HmQhGrGZnHojfQYqu3
b+VISjyJ5p1AIW6w4HE+klt4K7bvTvCKPBZpbst8I5ztpzObhjud6mrmkexSj29E
ZOUTYL4Ti1TR6cHXjxXDBB4KufLqI21xk3SlHNuslftRyRjvnsricogGh9zYm9Zu
52rsnQ282E2+CX7n363HbjR+KoBm5n9GVdlTqOh7Vcir2QAXQNWZ0RuvD/ViB1/S
kSLy3pFYoyvjuZZzKCknlfN1e9Hf8iqhB/iqlmwuqw6E8947r/4D57pPR0ztPAG+
65FrF2cs2olRvlsseRI/YRJNe89PEiyHSh7h/OPBIShD1O1JTYS5ZBavXMNETyob
g9u32v4eT4c6Ks8jHBeTy0v4LEA4gQytO2vLj1Za4Elo1OiOzuc99Cvx9NaHJPlF
1u3GBrJ3a6Ww/ek62hbyLA1H0eO4tbgyaXeTfsCKL5iWfPkgavm0SY3w4ibwxlgG
RHgx4MNIDW3B8nEuPQm14YNx7sLlJUy84F7YFCtdN93NL47rjmWujeEEKx9vrxxN
/hPFJLszTW6i67pSCOxQXtHOkSZqVq2njmbevUavtl879gsyxxA=
=TSGK
-----END PGP SIGNATURE-----