Skip to content

micron: Fix command injection vulnerabilities#3512

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-micron-command-injection-fixes
Jun 29, 2026
Merged

micron: Fix command injection vulnerabilities#3512
igaw merged 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-micron-command-injection-fixes

Conversation

@brgoing

@brgoing brgoing commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Fixes shell and path-related command injection vulnerabilities in the micron plugin:

  • Replaces system() calls that rely on user-supplied or drive-supplied strings with spawning a new process with a fixed argv array.
  • Trims and sanitizes the drive-provided serial number string before using it in path strings.
  • Checks the user-provided zip/tar package path for unsafe or unsupported characters before using it.

@brgoing brgoing force-pushed the bgoing/upstream-micron-command-injection-fixes branch 2 times, most recently from 0d5059d to 820a7b9 Compare June 26, 2026 16:06
Fixes shell and path-related command injection vulnerabilities
in the micron plugin:
- Replaces system() calls that rely on user-supplied or drive-supplied
strings with spawning a new process with a fixed argv array.
- Trims and sanitizes the drive-provided serial number string before
using it in path strings.
- Checks the user-provided zip/tar package path for unsafe or
unsupported characters before using it.

Signed-off-by: Broc Going <bgoing@micron.com>
@igaw igaw merged commit 5c67f72 into linux-nvme:master Jun 29, 2026
31 of 32 checks passed
@igaw

igaw commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@brgoing brgoing deleted the bgoing/upstream-micron-command-injection-fixes branch June 29, 2026 15:12
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