tn3399_openwrt/package/utils/busybox/patches
Jo-Philipp Wich 1211832977 busybox: handle crypt() errors in loginutils
The crypt(3) function is allowed to fail with either EINVAL or ENOSYS when
the given salt is either invalid or when the requested algorithm is not
implemented.

In such a case, libbb's pw_encrypt() function will silently convert the
crypt() NULL return value into an empty string which is then processed
without further errors by utilities such as chpasswd or passwd, causing
them to set an empty password when an unsupported cipher is requested.

Patch the relevant users of pw_encrypt() to abort in case an empty hash
is returned by pw_encrypt() in order to mitigate the problem.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-01-22 12:08:00 +01:00
..
100-trylink_bash.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
101-gen_build_files_bash.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
110-no_static_libgcc.patch busybox: update to 1.22.1 2014-05-25 17:42:09 +00:00
120-lto-jobserver.patch busybox: compile with LTO enabled 2018-07-13 17:22:53 +02:00
130-mconf_missing_sigwinch.patch busybox: update to 1.29.2 2018-08-02 22:36:00 +02:00
200-udhcpc_reduce_msgs.patch busybox: update to 1.30.0 2019-01-01 14:10:47 +01:00
201-udhcpc_changed_ifindex.patch busybox: update to 1.30.0 2019-01-01 14:10:47 +01:00
203-udhcpc_renew_no_deconfig.patch busybox: update to 1.30.0 2019-01-01 14:10:47 +01:00
210-add_netmsg_util.patch busybox: convert netmsg and lock applet to "new style" applet definition 2017-01-29 14:09:36 +01:00
220-add_lock_util.patch busybox: convert netmsg and lock applet to "new style" applet definition 2017-01-29 14:09:36 +01:00
230-add_nslookup_lede.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
240-telnetd_intr.patch busybox: update to 1.26.2 2017-01-29 14:09:38 +01:00
250-date-k-flag.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
270-libbb_make_unicode_printable.patch busybox: update to 1.30.0 2019-01-01 14:10:47 +01:00
301-ip-link-fix-netlink-msg-size.patch busybox: update to 1.29.2 2018-08-02 22:36:00 +02:00
500-move-traceroute-applets-to-bin.patch busybox: clean up patch fuzz 2018-01-05 10:35:51 +01:00
510-move-passwd-applet-to-bin.patch busybox: update to 1.28.2 2018-04-03 23:26:45 +02:00
520-loginutils-handle-crypt-failures.patch busybox: handle crypt() errors in loginutils 2019-01-22 12:08:00 +01:00