mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
1211832977
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> |
||
---|---|---|
.. | ||
100-trylink_bash.patch | ||
101-gen_build_files_bash.patch | ||
110-no_static_libgcc.patch | ||
120-lto-jobserver.patch | ||
130-mconf_missing_sigwinch.patch | ||
200-udhcpc_reduce_msgs.patch | ||
201-udhcpc_changed_ifindex.patch | ||
203-udhcpc_renew_no_deconfig.patch | ||
210-add_netmsg_util.patch | ||
220-add_lock_util.patch | ||
230-add_nslookup_lede.patch | ||
240-telnetd_intr.patch | ||
250-date-k-flag.patch | ||
270-libbb_make_unicode_printable.patch | ||
301-ip-link-fix-netlink-msg-size.patch | ||
500-move-traceroute-applets-to-bin.patch | ||
510-move-passwd-applet-to-bin.patch | ||
520-loginutils-handle-crypt-failures.patch |