Skip to content

staging-next-26.05 iteration 4 - 2026-08-02 - #548333

Merged
vcunat merged 83 commits into
release-26.05from
staging-next-26.05
Aug 7, 2026
Merged

vcunat merged 83 commits into
release-26.05from
staging-next-26.05

Conversation

nixpkgs-ci Bot and others added 30 commits July 21, 2026 00:34
Not-cherry-picked-because: patch differs from master
Signed-off-by: timothy <[email protected]>
https://www.libssh.org/2026/07/21/libssh-0-12-1-and-0-11-5-security-releases/

Fixes:
CVE-2026-15370: Stack buffer overflow in SFTP server longname construction
CVE-2026-59842: Information disclosure via short GSSAPI Curve25519 public key
CVE-2026-59843: Denial of service via zero advertised channel packet size
CVE-2026-59844: Denial of service via oversized SFTP read length
CVE-2026-59845: Denial of service via unchecked ProxyCommand fork() failure
CVE-2026-59846: Information disclosure via ProxyCommand %r username expansion
CVE-2026-59847: Integrity downgrade via OpenSSL AES-GCM tag verification
CVE-2026-59848: Denial of service via SFTP responses with unknown request IDs
CVE-2026-59849: Denial of service via automatic certificate authentication loop
CVE-2026-59850: Use-after-free via data callbacks on closed channels
CVE-2026-59851: Authentication bypass via missing GSSAPI principal check
(cherry picked from commit 7973bd6)
(cherry picked from commit a4973ac)
(cherry picked from commit cbd66b6)
(cherry picked from commit d8f639f)
Fixes CVE-2026-56391, CVE-2026-56392, NIXPKGS-2026-2271, and issue 545665

(cherry picked from commit f1d2364)
This hook is called in the fixupPhase via

```
local output
for output in $(getAllOutputNames); do
  prefix="${!output}" runHook fixupOutput
done
```

Without `__structuredAttrs`, `getAllOutputNames` returns the `output` array, in order.
However, with `__structuredAttrs`, it returns the keys of the `output` associative array,
which are no longer necessarily ordered in the same way.

In the case of some packages (e.g. `mate-panel-with-applets`) this means that instead of
`[ "out" "man" ]`, we process `[ "man" "out" ]`. Running the hook for `"man"` then sets
`wrapGAppsHookHasRun` and no wrapping is done for `"out"`, which is what was really needed.

Instead, keep track of whether the hook has run on a per-output basis. That way, the order
does not matter and any executables that are spread around multiple outputs are wrapped.

(cherry picked from commit a0ee897)
SECURITY ADVISORY: All releases through 1.2.6 are affected by CVE-2026-40200 on 32-bit archs, and should be patched.
https://www.openwall.com/lists/musl/2026/04/10/3
SECURITY ADVISORY: All releases through 1.2.6 are affected by CVE-2026-6042. Users who may have iconv exposed to untrusted data should patch to avoid a denial of service.
https://www.openwall.com/lists/oss-security/2026/04/09/19
This code tried to compute a `TMPDIR` short enough to guarantee OpenSSH
could create a unix socket underneath it. However, that computation was
flawed, as the logic predates our recent change from `%n` to `%C`:
f23bab4

I ended up refactoring things here to put the ssh logic close to the
tmpdir logic. I think that's appropriate as they really need to stay in
sync, and this will hopefully help future developers keep them in sync.
(I briefly explored trying to write the code in a way that forces them
to stay in sync, but I abandoned that, as it made the code too obtuse.)

I've documented all the implementation details we depend on. I also
removed our assumptions on the behavior of Python's `tempfile` module:
we now just ask it for a tempdir and check the resulting length. Now nothing
will have to change in the future if Python starts using 9 characters
instead of 8 for avoiding name conflicts.

For the record, we ran into this over in ngipkgs:
https://github.com/ngi-nix/ngipkgs/issues/2300, which is what triggered
this investigation.

(cherry picked from commit b484df8)
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 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. 4.workflow: staging A staging-next or staging-next-XX.YY branch labels Aug 2, 2026
@vcunat

vcunat commented Aug 5, 2026 •

Copy link
Copy Markdown
Member Author

@scottstephens

Copy link
Copy Markdown
Contributor

Would guess this is related to the tpm2-tss backport done by @thillux.

@scottstephens

Copy link
Copy Markdown
Contributor

Looks like it's not actually the backport part that's the problem, but the original commit: 86293d2

Didn't pop in staging-next because it was merged directly to staging: #547031

Current best guess of cause is that the updated tpm2-tss is incompatible with the old pytss.

@vcunat

vcunat commented Aug 5, 2026 •

Copy link
Copy Markdown
Member Author

Didn't pop in staging-next because it was merged directly to staging: #547031

That's the normal workflow. You merge to staging and staging gets periodically manually merged to staging-next. https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#staging

@scottstephens

Copy link
Copy Markdown
Contributor

Didn't pop in staging-next because it was merged directly to staging: #547031

That's the normal workflow. You merge to staging and staging gets periodically manually merged to staging-next. https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#staging

Doh, you're right. It didn't pop in staging-next because it simply hasn't been merged to staging-next yet.

In any event, upgrading pytss fixes this. I'll have a PR shortly.

@scottstephens

Copy link
Copy Markdown
Contributor

The commit from PR #549593 should also fix this. An additional issue to this branch is whether it's acceptable to do an upgrade that is both major and to a release candidate in a backport. (The fix is upgrading tpm2-pytss from 2.3.0 -> 3.0.0rc1.)

@vcunat

vcunat commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Generally we want to reduce risks of incompatibility/breakages in stable nixpkgs. Both of you (python3Packages.tpm2-pytss.meta.maintainers) agreed with that backport. I assume you took that into account, so that's fine with me / up to you.

@vcunat
vcunat added this pull request to the merge queue Aug 7, 2026
Merged via the queue into release-26.05 with commit ee48b14 Aug 7, 2026
44 checks passed
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 4.workflow: staging A staging-next or staging-next-XX.YY branch 8.has: package (update) This PR updates a package to a newer version 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.