Skip to content

dhcpcd: 10.3.2 -> 10.5.2 - #562813

Closed
Freax13 wants to merge 2 commits into
NixOS:staging-nixosfrom
Freax13:update-dhcpcd
Closed

Freax13 wants to merge 2 commits into
NixOS:staging-nixosfrom
Freax13:update-dhcpcd

Conversation

@Freax13

@Freax13 Freax13 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

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

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Sep 13, 2026
@samueldr-at-cyberus

Copy link
Copy Markdown
Contributor

These upgrades would handle the following CVEs:

ref: #534921

@nixpkgs-ci nixpkgs-ci Bot added the 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! label Sep 24, 2026
@whispersofthedawn whispersofthedawn added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Oct 14, 2026
@leona-ya

Copy link
Copy Markdown
Member

Could you change the commit message to nixos/dhcpcd: allow chown syscall

@Freax13

Freax13 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor Author

nixos/dhcpcd: allow chown syscall

Done

@nixpkgs-ci nixpkgs-ci Bot removed the 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. label Oct 17, 2026
@savyajha

Copy link
Copy Markdown
Contributor

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.

@Freax13

Freax13 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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?

@savyajha

Copy link
Copy Markdown
Contributor

@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:

dhcpcd has been updated to 10.5, which hardens its control socket (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 and add the group to systemd.services.dhcpcd.serviceConfig.SupplementaryGroups. Without the latter dhcpcd fails to start.

@savyajha

savyajha commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Also, a couple of small nits (non-blocking imo):

Instead of using sha256, use hash, and instead of using rev, use tag. If you're adding the release note then might as well make these changes.

nixpkgs-branch-check[bot]

This comment was marked as outdated.

@Freax13

Freax13 commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

@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:

dhcpcd has been updated to 10.5, which hardens its control socket (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 and add the group to systemd.services.dhcpcd.serviceConfig.SupplementaryGroups. Without the latter dhcpcd fails to start.

Thanks! Added.

Also, a couple of small nits (non-blocking imo):

Instead of using sha256, use hash, and instead of using rev, use tag. If you're adding the release note then might as well make these changes.

Done.

@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review November 14, 2026 08:30

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Freax13 and others added 2 commits November 14, 2026 09:32
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.
@nixpkgs-ci nixpkgs-ci Bot added 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Nov 14, 2026

@savyajha savyajha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 14, 2026
andrewthomaslee added a commit to external-systems/pkgs that referenced this pull request Nov 17, 2026
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

prusnak added a commit to bitcoinix/bitcoinix that referenced this pull request Nov 20, 2026
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)
@Freax13 Freax13 closed this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants