Bug 2508077
| Summary: | CVE-2026-16313 sg3_utils: sg3_utils: arbitrary command execution via udev property injection in sg_inq --export [fedora-all] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | jkelly <jkelly> |
| Component: | sg3_utils | Assignee: | Paul Evans <pevans> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | rawhide | CC: | dan, pevans |
| Target Milestone: | --- | Keywords: | Security, SecurityTracking |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | {"flaws": ["286380cc-ce7f-4364-a772-2846fa6fda17"]} | ||
| Fixed In Version: | sg3_utils-1.48-10.fc43 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-07-29 12:13:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2502845 | ||
The fix for CVE-2026-16313 has been cherry-picked and integrated directly into the repositories for Fedora 43, Fedora 44, and Rawhide. Fixed-in versions: Rawhide: sg3_utils-1.48-10 Fedora 43: sg3_utils-1.48-10 Fedora 44: sg3_utils-1.48-10 Closing this bug as the issue is resolved in all current active release branches. Correction/clarification for the exact RPM release tags with distros: - F43: sg3_utils-1.48-10.fc43 - F44: sg3_utils-1.48-10.fc44 - Rawhide: sg3_utils-1.49-10.fc45 |
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. sg3_utils v1.34 through v1.48 contains a command injection flaw in export_dev_ids() in src/sg_inq.c. The sg_inq --export command outputs SCSI device identification data from VPD page 0x83 in KEY=VALUE format for udev import. The SCSI name string field (designator type 8, line 2046) and the ATA subfield (line 1922) are printed with printf("%.*s") without sanitizing control characters. A newline embedded in a device-controlled name string splits a single property into two lines, allowing injection of arbitrary udev properties including REMOVE_CMD. Combined with the default udev rule in 50-udev-default.rules that executes REMOVE_CMD on device removal, this enables arbitrary root command execution when a crafted SCSI device is disconnected. CWE-93. Introduced in commit c410806c (2012-02-23). Fixed upstream in PR #83.