Skip to content

fix: resolve CVE-2026-23410 (HIGH) linux-libc-dev apparmor race condition#30

Merged
idvoretskyi merged 1 commit intomainfrom
copilot/fix-apparmor-race-condition-again
Apr 27, 2026
Merged

fix: resolve CVE-2026-23410 (HIGH) linux-libc-dev apparmor race condition#30
idvoretskyi merged 1 commit intomainfrom
copilot/fix-apparmor-race-condition-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

linux-libc-dev 6.8.0-85.85 contains a use-after-free in AppArmor's rawdata handling — concurrent open() on a rawdata file and profile removal can race, leaving i_private as a dangling pointer in seq_rawdata_open(). Fixed in 6.8.0-106.106.

Changes

  • .devcontainer/Dockerfile: Replaced the separate apt-get -y upgrade linux-libc-dev call with an explicit entry in the primary apt-get install block, ensuring the latest available linux-libc-dev (≥ 6.8.0-106.106) is fetched from Ubuntu 24.04 security/updates repos on every image build.
# Before
apt-get -y install --no-install-recommends python3 python3-venv python3-pip sudo \
  && apt-get -y upgrade linux-libc-dev

# After
apt-get -y install --no-install-recommends python3 python3-venv python3-pip sudo linux-libc-dev

Version pinning to the exact 6.8.0-106.106 was intentionally avoided — apt's = pinning would break builds once Ubuntu advances to a newer revision, trading one vulnerability for a brittle image.

@idvoretskyi idvoretskyi merged commit 878573f into main Apr 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants