Skip to content

fix: block macOS firmlink alias paths in File System Access blocklist - #54677

Merged
VerteDinde merged 13 commits into
43-x-yfrom
security-backport/43-x-y/fsa-firmlink
Oct 22, 2026
Merged

VerteDinde merged 13 commits into
43-x-yfrom
security-backport/43-x-y/fsa-firmlink

Conversation

@claude

@claude claude Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Requested via Slack

Cherry-picks the upstream File System Access blocklist fix for macOS firmlink alias paths (e85c5aea16d7, the M150-LTS merge of upstream 64c8e2a1ceda, "[FSA] Block macOS firmlink alias paths to sensitive directories") and switches Electron's own blocklist matcher to the new normalization, so paths spelled through /System/Volumes/Data can no longer bypass blocked directories such as ~/.ssh or ~/Library. The same change already landed on 44-x-y in #54666 and 42-x-y in #54668; the Oct 6 backport for this branch (#54667) left it out. The chromium patch is the one used on 42-x-y with only line offsets and index hashes refreshed for 43-x-y.

This was not built locally; CI is the build gate.

Note

This PR changes shell/browser/file_system_access/file_system_access_permission_context.cc outside patches/ (its own commit): ShouldBlockAccessToPath() now calls ChromeFileSystemAccessPermissionContext::NormalizeFilePathForBlocklist() instead of NormalizeFilePath(). Upstream: CL 8410087, upstream commit 64c8e2a1cedafdbcc750abc423ad9b389537c223.

Checklist

🤖 Generated with Claude Code

https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx


Generated by Claude Code

Release Notes

Notes: Backported fix for a macOS File System Access blocklist bypass via /System/Volumes/Data paths.

claude added 2 commits October 6, 2026 22:55
* e85c5aea16d7 from chromium

[M150-LTS][FSA] Block macOS firmlink alias paths to sensitive directories
(M150-LTS merge of upstream 64c8e2a1ceda).

Refs https://chromium-review.googlesource.com/c/chromium/src/+/8410087 (upstream commit 64c8e2a1cedafdbcc750abc423ad9b389537c223)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
…klist checks

Switches Electron's copy of ShouldBlockAccessToPath() to the
NormalizeFilePathForBlocklist() helper introduced by the companion
chromium cherry-pick (upstream 64c8e2a1ceda), so paths spelled via
/System/Volumes/Data are matched against the root-namespace blocklist
rules the same way Chrome does.

Refs https://chromium-review.googlesource.com/c/chromium/src/+/8410087 (upstream commit 64c8e2a1cedafdbcc750abc423ad9b389537c223)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
@claude claude Bot added 43-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes labels Oct 6, 2026
@claude
claude Bot marked this pull request as ready for review October 7, 2026 14:31
@claude
claude Bot requested a review from a team as a code owner October 7, 2026 14:31
claude added 3 commits October 8, 2026 13:14
Resolve the patches/chromium/.patches conflict with fee1dae (cherry-pick
27 changes from angle, chromium, pdfium and v8, #54899). Both sides
appended entries after cherry-pick-ff834f798fe3.patch. Keep all 22 new
43-x-y entries in their order and append cherry-pick-e85c5aea16d7.patch
last. The new patches do not touch the files that e85c5aea16d7 patches.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
@claude

claude Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

The failing lint / Lint check (job 115600003241) is not caused by this PR. It failed during setup, before any linter ran: the step that fetches Chromium's buildtools/DEPS from raw.githubusercontent.com got 429: Too Many Requests, so gclient sync reported There is a syntax error in ./src/buildtools/DEPS.

The base branch head, 43-x-y (fee1dae, job 115598584175), failed the same step with the same 429 a few minutes earlier. This is a transient rate limit, so re-running the job once the run finishes should clear it. The patch, C++, and spec changes here were never linted.


Generated by Claude Code

@claude

claude Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

The re-run of lint / Lint (run 38486049696, attempt 2) hit the same failure as attempt 1: setup got a 429 from raw.githubusercontent.com while fetching Chromium's DEPS, so no linter ran. The base branch is red the same way: lint / Lint on the current 43-x-y head (14be983, run 38487403564) also failed in setup with a 429 on the same DEPS fetch. It needs a maintainer re-run once the rate limit clears.


Generated by Claude Code

@claude
claude Bot requested review from ckerr and dsanders11 October 16, 2026 03:35
@claude

claude Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

The failing linux-x64-asan / test / test (linux, 3) check (job 116802506703) is not caused by this PR. One spec failed on all 4 attempts (1 run plus 3 retries):

api-browser-window.spec.ts:1494 > BrowserWindow module > focus, blur, and z-order > BrowserWindow.focus() > keeps focus in a child WebContentsView when the window regains focus, which fails with AssertionError: expected false to be true at line 1517 (expect(child.webContents.isFocused()).toBe(true)). There was no ASAN crash. The only sanitizer output was non-fatal LeakSanitizer reports from renderer subprocesses during window.open specs.

This PR only touches the File System Access blocklist (a Chromium cherry-pick, plus NormalizeFilePathForBlocklist, which is a no-op off macOS) and adds a darwin-only spec. None of that affects BrowserWindow or WebContentsView focus on Linux. The same spec fails the same way on the 43-x-y base: in Build runs 38824166956, 38806379568 and 38702852369, it is the only failure in asan shard 3. Other base runs pass that shard, so the spec is flaky on 43-x-y.

The workflow run is still in progress, so I'll re-run the failed jobs once after it finishes.


Generated by Claude Code

@VerteDinde
VerteDinde enabled auto-merge (squash) October 16, 2026 04:19
@claude

claude Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

The failure in linux-x64-asan / test / test (linux, 2) (job 118398561453) is unrelated to this PR.

No specs ran. The job failed in the background Install Dependencies step during yarn install (Resolution step):

ERROR: Yarn is terminating due to an unexpected empty event loop.
Please report this issue at https://github.com/yarnpkg/berry/issues.
##[error]Process completed with exit code 42.

There was no spec failure and no ASAN report. This is an intermittent Yarn/CI infrastructure error. This PR's changes (the FSA blocklist cherry-pick, NormalizeFilePathForBlocklist, which does nothing off macOS, a darwin-only spec and one .patches line) don't touch dependency installation and can't affect it.

On 43-x-y, the same asan shard 2 job passed in recent Build runs 39340150225 and 39266425273.

This failed job will be re-run once, after the current run (39349968154) finishes.


Generated by Claude Code

@VerteDinde
VerteDinde merged commit ef0d5b8 into 43-x-y Oct 22, 2026
76 checks passed
@VerteDinde
VerteDinde deleted the security-backport/43-x-y/fsa-firmlink branch October 22, 2026 04:52
@release-clerk

release-clerk Bot commented Oct 22, 2026

Copy link
Copy Markdown

Release Notes Persisted

Backported fix for a macOS File System Access blocklist bypass via /System/Volumes/Data paths.

shariqh added a commit to shariqh/agent-inbox that referenced this pull request Oct 28, 2026
Electron 43.8.4 updates its embedded Node.js to the v24.22.1 security
release (electron/electron#55161). The app and Setup's portable runtime now
run the same Node.

Electron 43.8.4 also fixes:
- a macOS File System Access blocklist bypass (electron/electron#54677);
- further blocklist gaps (electron/electron#55331);
- asar handling (electron/electron#55179, electron/electron#55185);
- tzdata, updated to 2026e (electron/electron#55336).

OpenSSL 3.5.9 reaches only Setup's runtime, because Electron's Node uses
BoringSSL.

- Every Electron pin moves from 43.8.3 to 43.8.4: package.json, the
  lockfile, the three release input profiles, the Windows pin constant, the
  linux-inputs hash in the AppImage and DEB contracts, tests and docs. ABI
  stays 148.
- The package's checksums.json matches the official SHASUMS256.txt (75/75),
  and #363 enforces it at build time. The binary, releases.json and
  Electron's DEPS all report Node 24.22.1 with ABI 148. src/api/hooks.cc is
  unchanged since Node 24.22.0, so the #135 fix still comes from upstream
  Node.
- Electron 43.8.4's Linux zips store most files as 0666 or 0777, and so do
  44.10.0's and 45.1.0's; the packager keeps stored modes. The Linux thin-app
  builder now clears group and other write on Electron's extracted files,
  never through a symlink. This restores 43.8.3's modes exactly.
- The AppImage's final verifier now refuses any regular file other than the
  sandbox that isn't 0644 or 0755. The DEB's verifier already did.

Follow-up: #378 (mode gates in the thin-folder verifiers).

Closes #371

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9e7ec7a7-8690-49e5-9d55-492fedc3027a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

43-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants