-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hostapd: 2.9 -> 2.10; wpa_supplicant: 2.9 -> 2.10 #155266
Conversation
name = "CVE-2021-30004.patch"; | ||
url = "https://w1.fi/cgit/hostap/patch/?id=a0541334a6394f8237a4393b7372693cd7e96f15"; | ||
sha256 = "1gbhlz41x1ar1hppnb76pqxj6vimiypy7c4kq6h658637s4am3xg"; | ||
url = "https://raw.githubusercontent.com/openwrt/openwrt/eefed841b05c3cd4c65a78b50ce0934d879e6acf/package/network/services/hostapd/patches/300-noscan.patch"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason for this URL change? The pointed content seems identical.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess explicitly pointing to a specific commit pins a bit further the content, sounds good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it was scratching an itch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually tested this on a couple of deployments.
LGTM
# Note: fetchurl seems to be unhappy with openwrt git | ||
# server's URLs containing semicolons. Using the github mirror instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Since we are not using the github link we could have also used fetchpatch.
Am I the only one for whom this completely broke wpa_gui? (The program starts but the window is never drawn) I bisected it to upstream commit |
For me it shows the window well, but my machine does not have wpa_supplicant or WiFi. |
Ok so the problem is that my list of networks (
(I am using and the logic in that commit assumes that the IDs are strictly increasing, otherwise it might get stuck in an infinite loop.
Fixing this could be as simple as declaring the |
Well, we (to be precise, I) messed around in their code, so not sure if that still counts as upstream bug :) I'll take a look. |
I mean that it would still happen without your patch. |
Using the patch suggested above solves the issue:
|
Seems reasonable to me. Do you want to file a PR? %) |
Yes, I'll send the patch to their mailing list. |
I'd say it's OK to file a PR here as well :) |
Oh, yes, will do that as well. |
Fixes the bug described at NixOS#155266 (comment)
Opened #158505 and sent the patch upstream |
Motivation for this change
https://w1.fi/security/2022-1/sae-eap-pwd-side-channel-attack-update-2.txt
https://w1.fi/cgit/hostap/plain/hostapd/ChangeLog
https://w1.fi/cgit/hostap/plain/wpa_supplicant/ChangeLog
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes