Repository navigation
dhcpcd: 10.3.2 -> 10.5.2 - #562813
dhcpcd: 10.3.2 -> 10.5.2#562813Freax13 wants to merge 2 commits into
Conversation
|
These upgrades would handle the following CVEs: ref: #534921 |
|
Could you change the commit message to |
2a36754 to
c2989ff
Compare
Done |
|
I just tested this PR after rebasing it locally, and one change I could see is that unprivileged users cannot query dhcpcd. This fixes CVE-2026-56117 for sure, but anyone with scripts or status bars depending on this behaviour will be affected. It doesn't affect any nixos-specific behaviour as far as I could tell. I think adding a message to the module might be worth it. |
I'm not familiar with this. Can you suggest a message? |
|
@Freax13 I think changing the module would be better for a followup PR on second thought. I think adding this to the release notes makes more sense:
|
|
Also, a couple of small nits (non-blocking imo): Instead of using |
c2989ff to
27f2397
Compare
27f2397 to
157f205
Compare
Thanks! Added.
Done. |
Review dismissed automatically
There was a problem hiding this comment.
Thanks for contributing to the documentation.
Follow the documentation style guide, especially:
- Show, don’t tell. Start with a minimal working example. Explain after the code.
- Avoid meta-commentary. Don’t write "This section explains how to…".
- Use present tense, imperative mood, and active voice. For example: "Run the command," not "The user should run the following command."
- Avoid vague references like "this" when the referent is unclear. Write "This command creates a folder," not "This will create a folder."
- Be direct. Avoid "should", "might", "typically", and "usually".
- Cut filler words like "simply", "just", "easily", and "basically". Use "to" instead of "in order to".
For larger changes, such as adding or removing whole sections, ask the NixOS documentation team for review.
Co-Authored-By: R. RyanTM <[email protected]>
Starting with v10.5.1, dhdpcd uses the chown syscall to adjust permissions for its control socket. See NetworkConfiguration/dhcpcd#705 for details.
157f205 to
6ceae2e
Compare
The owner chose the upstream release over the two-commit patch. A fleet-wide swap of pkgs.dhcpcd is not possible yet: from 10.5.1 dhcpcd calls chown on its control socket, and the system-call filter of the NixOS dhcpcd.service kills it at start (NixOS/nixpkgs#562813 is open). So 10.5.2 comes as its own attribute, dhcpcd_latest, for clanServices netif, which starts dhcpcd from an IfState hook. pkgs.dhcpcd keeps 10.3.2 with the two upstream commits, unchanged. Co-authored-by: Claude Fable 5.2 <[email protected]>
|
|
||
| - The `image/repart.nix` module now requires users to explicitly enable its use via `image.repart.enable`. | ||
|
|
||
| - `dhcpcd` has been updated to 10.5, which hardens its control socket ([CVE-2026-56117](https://nvd.nist.gov/vuln/detail/CVE-2026-56117)). The world-accessible `/run/dhcpcd/unpriv.sock` is gone and `/run/dhcpcd/sock` is only accessible to the `dhcpcd` user, so unprivileged users can no longer query dhcpcd (e.g. `dhcpcd -U`, `dhcpcd --dumplease`). To grant a group access, set `readgroup <group>` (read-only) or `controlgroup <group>` in [](#opt-networking.dhcpcd.extraConfig) **and** add the group to `systemd.services.dhcpcd.serviceConfig.SupplementaryGroups`. Without the latter dhcpcd fails to start. |
There was a problem hiding this comment.
This is somewhat brittle: the current implementation of the module appends extraConfig, which may or may not work for a global setting like readgroup: for static IPv6 addresses, it issues interface entry, which renders all statements below it (including our new extraConfig) scoped to the interface. For readgroup statement, it ignores it completely then.
Ideally, we would add a new option (readGroup), make it always render at the top of the config file, and instruct users to use it.
There's also another problem - captive-browser module where we get DNS servers as follows:
else if config.networking.dhcpcd.enable then
"${pkgs.dhcpcd}/bin/dhcpcd ${iface [ "-U" ]} | ${pkgs.gnugrep}/bin/fgrep domain_name_servers"As I understand, this won't work unless 1) dhcpcd is configured for readgroup; and 2) the user that runs captive-browser is in the group. With readGroup option, captive-browser could mkDefault the option to initialize the group. Then the user would only need to: users.users.xxx.extraGroups = [ "dhcpcd-read" ];. (We would also document this in a release note so there's no confusion.)
Let me know what you think.
Handles three of the eight findings from the 2026-11-19 CVE scan (#157 (comment)). None of them applies to a node: - **brotli 1.2.1, CVE-2026-111497** (name collision): NVD lists google:brotli as fixed in 1.2.1. The match comes from andybalholm:brotli, the Go port. - **jq 1.8.2, CVE-2026-44777** (range misread): the jq advisory GHSA-rmpv-jgvr-wpr9 lists 1.8.2 as fixed, but NVD's range includes it. - **sqlite 3.54.0, CVE-2026-119586** (library only): the flaw is in the `sqlite3` shell, and the closure has only the library output. rsync and dhcpcd stay reported. They come from NixOS defaults, and their fixes (NixOS/nixpkgs#583133, NixOS/nixpkgs#562813) haven't reached nixos-unstable yet. Tested: ran vulnix on `test/ci/scan-node.nix` built at e608816. With master's whitelist it reports the bot's 8 findings. With this one only rsync and dhcpcd×4 remain. Assisted-by: Claude Code (Claude Opus 5.5)
This PR updates dhdpcd to v10.5.2 and adjusts the systemd syscall filter to allow the chown syscall (required starting with v10.5.1).
Changelogs: v10.5.0 v10.5.1 v10.5.2
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.