Repository navigation
build(deps): Bump golang.org/x/sys from 0.47.0 to 0.48.0 - #1449
Conversation
🔒 Security Audit —
|
| Check | Result |
|---|---|
| Requirements in base vs head | 362 vs 362 |
| Requirement version changes | Exactly 1 — golang.org/x/sys v0.47.0 → v0.48.0 |
// indirect marker flips |
None — all 362 keep identical direct/indirect status |
go.sum lines touched |
4 — all four are golang.org/x/sys; no other module's hash altered |
The remaining churn is pure go mod tidy block reorganisation. Independently confirmed: go mod tidy -diff -go=1.27.1 against the PR head produces zero diff hunks — the resulting go.mod is exactly what go mod tidy generates, not a hand-edit. Nothing is smuggled in.
Worth a note for anyone skimming the diff on GitHub: 329 changed lines for a one-version bump looks alarming, and this is the first x/sys bump here to trigger full-graph churn (previous ones were clean 2-line diffs). The mechanism is benign — tools/tools.go blank-imports golangci-lint, buf and mockery, so x/sys sits underneath nearly the entire tool graph and its version move reshuffles MVS block placement for many other modules whose versions never change. Confirmed reflow, not scope creep.
2. Supply-chain verification
- Checksum database — the
go.sumentries match the Go checksum transparency log byte-for-byte (h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=). Module tampering is ruled out. - Tag integrity —
v0.48.0resolves to commit613e2570718ecde85c04e69ebd5585c3881c442cin the GitHub mirror, and the Go module proxy independently records the same hash originating from canonicalgo.googlesource.com/sys. Two independent sources agree; no moved-tag attack. - Provenance — all 17 commits landed through Gerrit with LUCI TryBot results and Google reviewers (Ian Lance Taylor, Cherry Mui, David Chase, Dmitri Shuralyov); 16 of 17 committed by Gopher Robot. No unexplained contributor on a security-sensitive path.
- Injection points — scanned the upstream diff for new outbound network calls,
os.Getenv/credential reads,exec.Command, shell-outs, and base64/obfuscated blobs: none. The single build-script change (unix/mkerrors.sh) is fully explained by two documented commits (sparc64 termbits cleanup,MLOCK_*constant regex).
3. Known vulnerabilities
| ID | Severity | Affected range | Applies here? |
|---|---|---|---|
| CVE-2022-29526 / GHSA-p782-xgp4-8hr8 / GO-2022-0493 | Moderate (CWE-269) | < 0.0.0-20220412211240 |
No — fixed long before both versions |
OSV.dev returns no vulnerabilities for v0.47.0 or v0.48.0. Sources checked: OSV.dev, GitHub Advisory DB, NVD, Go vulnerability DB.
Worth stating explicitly, because the coincidence deserved scrutiny rather than a shrug: the only x/sys CVE in history is an access-check bypass in Faccessat, and this repository's sole use of the library is an access check. I chased it down. unix.Access is implemented as Faccessat(AT_FDCWD, path, mode, 0) — flags zero, while CVE-2022-29526 requires a non-zero flags parameter. Not affected, on two counts.
4. Upstream change assessment (17 commits)
Overwhelmingly generated constant/type additions and new architecture support (sparc64, riscv64, ppc64le POWER10). Two commits carry real weight:
f6989c5—unix: align Ifreq so its union accessors cannot fault. An unregistered memory-safety fix with no CVE:Ifreq's union was byte-aligned, so in-place casts could fault (SIGBUS on sparc64). This is a net safety improvement and worth flagging precisely because automated scanners will never see it — it carries no advisory ID.e8c1c32— upstreamgodirective raised1.25.0 → 1.26.0. I verified the compatibility angle rather than assuming it: this repo declaresgo 1.27.1and CI pins1.27.1/^1.27.1. Comfortably satisfied, no build-compatibility risk.
No constant was removed despite the deletion lines in the per-arch files — TIOCSER_TEMT was deduplicated into the generic header. The change is net-additive, so no build break.
5. Impact on this codebase
golang.org/x/sys has exactly one direct consumer here — libs/os/perms.go — using a total API surface of four symbols: unix.Access, unix.R_OK, unix.W_OK, unix.X_OK.
None of the four is touched anywhere between v0.47.0 and v0.48.0. The blast radius of this bump on first-party code is nil; residual exposure is transitive only.
6. CI status
The two red checks were investigated against actual job logs, not guessed at from job names. Neither is caused by this bump — no failure text mentions x/sys, unix.*, or any platform binding:
tests (01)—TestLoadHeightProgressUnderSustainedFloodfailed a timing assertion by roughly one part in a thousand ("137" is not greater than "137.04925995000002"). A load test with a hard timing threshold, run under-raceon a shared runner. This same check is green on thev1.8-devtip.e2e-test (dashcore)—connection reset by peerwhile fetching the unrelated module[email protected]from the Go module proxy. A network flake during dependency download, not a compile error.
Both are environmental. e2e-test (dashcore) has also failed on v1.8-dev itself without this bump, so that job is structurally fragile independent of PR content. I have requested a Dependabot rebase to re-run them.
7. Out-of-scope observations — not introduced by this PR
While assessing the sole consumer of the bumped library and the manifest gates around it, two pre-existing items surfaced. Neither is a merge blocker and neither has anything to do with this bump, but suppressing a real finding because it was inconvenient to the verdict would be poor practice:
LOW —
libs/os/perms.go:83: operator remediation advice weakens validator key permissions (CWE-732).
The permission-error message instructs operators to runfind <dir> -type f -exec chmod 640 {} \;over the config directory. That directory holdspriv_validator_key.jsonandnode_key.json, which this codebase deliberately writes with mode0600(privval/file.go:102,189,types/node_key.go:80). An operator following the suggested command relaxes the consensus signing key to group-readable, contradicting the project's own hardening. On a shared host or a container whose group spans other services, group-read on a BLS validator key is a key-disclosure and equivocation risk.
Suggested remediation: advisechmod 600for files (or scope the640to non-key files). Worth a separate issue — please do not expand this PR.
LOW — no
go mod tidy/go mod verifygate exists in CI.
No workflow in.github/workflows/invokesgo mod tidyorgo mod verify;lint.ymltreatsgo.mod/go.sumas a trigger file set, not a tidiness target, andgomodguardis an allow/deny-list linter rather than a tidy check. The onlygo mod tidyis a local Makefile convenience rule. Consequently the manifest-integrity checks I performed by hand above are, at present, performed by nobody automatically. Defense-in-depth suggestion for a separate issue: add ago mod tidy -diffandgo mod verifystep so manifest drift and hash mismatches are caught by CI rather than by a reviewer who happens to look.
Recommendation
Merge once CI is green. Do not merge on the current red state: the failures are environmental, but merging over unexplained red is a habit that eventually lets a real regression through. A rebase has been requested to re-run the flaky jobs.
One transparency note: I attempted to cross-check the repository's open Dependabot alerts for broader context, but the /dependabot/alerts endpoint requires elevated scope and the escalated attempt was declined at the permission prompt. This does not affect the verdict above — it was supplementary context only — but the check was not performed and I would rather say so than let its absence pass as a pass.
🍬 Tally: 0 critical, 0 high, 0 medium, 2 low (both pre-existing and out of scope) — plus 1 unregistered upstream memory-safety fix worth knowing about.
🤖 Co-authored by Claudius the Magnificent AI Agent
|
@dependabot rebase |
|
Sorry, only users with push access can use that command. |
|
@dependabot rebase |
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.47.0 to 0.48.0. - [Commits](golang/sys@v0.47.0...v0.48.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-version: 0.48.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
0f6a97e to
95ef0bd
Compare
Bumps golang.org/x/sys from 0.47.0 to 0.48.0.
Commits
613e257cpu: add riscv64 hwprobe drift test6f7b10funix: add MLOCK_ONFAULT constant663e7c8cpu: add basic support for GOARCH=sparc64de5f12fcpu: add ppc64le POWER10 detection80e8acfunix: run go fix1e3c182unix: add IPMI interfaced429e20unix: stop generating sparc termbits from the generic headerbd3bddfunix: add missing HWTSTAMP_* constantse812f53windows: add SO_SNDTIMEO constant for socket optionsf6989c5unix: align Ifreq so its union accessors cannot fault