Skip to content

audio: mux: fix a blob size check - #11113

Open
lyakh wants to merge 1 commit into
thesofproject:mainfrom
lyakh:mux
Open

audio: mux: fix a blob size check#11113
lyakh wants to merge 1 commit into
thesofproject:mainfrom
lyakh:mux

Conversation

@lyakh

@lyakh lyakh commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Before dereferencing the data blob make sure that it matches the expected size, not just isn't exceeding the maximum size.

found by fuzzer https://github.com/thesofproject/sof/actions/runs/32463369471/job/96714735796?pr=11108

Before dereferencing the data blob make sure that it matches the
expected size, not just isn't exceeding the maximum size.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lyakh
lyakh requested a review from fkwasowi as a code owner August 21, 2026 11:02
Copilot AI lite review requested due to automatic review settings August 21, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the IPC4 mux module configuration parsing by validating that the received data blob is exactly the expected struct size before it is dereferenced, preventing out-of-bounds reads on undersized blobs (as found by fuzzing).

Changes:

  • Tighten mux IPC4 blob validation from “not exceeding max” to “exactly equals expected struct size”.
  • Fail early with -EINVAL when the config blob is missing or undersized.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants