Bug 2500983 - CVE-2026-15809 cri-o1.36: Fix Bypass for CVE-2022-4318 — /etc/passwd Injection via HOME env [fedora-all]
Summary: CVE-2026-15809 cri-o1.36: Fix Bypass for CVE-2022-4318 — /etc/passwd Injectio...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cri-o1.36
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Brad Smith
QA Contact:
URL:
Whiteboard: {"flaws": ["61d36888-a402-47e5-bd9c-b...
Depends On:
Blocks: CVE-2026-15809
TreeView+ depends on / blocked
 
Reported: 2026-07-15 15:20 UTC by gkamathe
Modified: 2026-08-04 16:59 UTC (History)
2 users (show)

Fixed In Version: cri-o1.36-1.36.3-1.fc45
Clone Of:
Environment:
Last Closed: 2026-08-04 16:59:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description gkamathe 2026-07-15 15:20:57 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

The fix for CVE-2022-4318 in CRI-O is incorrect and has been bypassable since it was introduced on December 14, 2022. The check in server/container_create.go uses a Go raw string literal (`\n`) instead of an interpreted string literal ("\n"), causing it to search for the literal two-character sequence backslash-n (0x5c 0x6e) rather than an actual newline character (0x0a).

An attacker who can set environment variables on a container (via the CRI CreateContainer request) can supply a real newline character in the HOME environment variable, bypassing the check entirely. The unsanitized value is
then passed to utils.GeneratePasswd, which uses fmt.Sprintf to construct the container's /etc/passwd content, allowing arbitrary line injection.

Comment 1 Fedora Update System 2026-08-04 16:56:36 UTC
FEDORA-2026-e58c82fdeb (cri-o1.36-1.36.3-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-e58c82fdeb

Comment 2 Fedora Update System 2026-08-04 16:59:25 UTC
FEDORA-2026-e58c82fdeb (cri-o1.36-1.36.3-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.