Skip to content

fix: the slirp_input() call at net/slirp in slirp.c#107

Closed
orbisai0security wants to merge 1 commit into
Xilinx:masterfrom
orbisai0security:fix-v007-slirp-buffer-size-validation
Closed

fix: the slirp_input() call at net/slirp in slirp.c#107
orbisai0security wants to merge 1 commit into
Xilinx:masterfrom
orbisai0security:fix-v007-slirp-buffer-size-validation

Conversation

@orbisai0security

Copy link
Copy Markdown

Summary

Fix critical severity security issue in net/slirp.c.

Vulnerability

Field Value
ID V-007
Severity CRITICAL
Scanner multi_agent_ai
Rule V-007
File net/slirp.c:137

Description: The slirp_input() call at net/slirp.c:137 passes a network packet buffer and its size parameter directly from the guest network receive path without validating that 'size' does not exceed the actual allocated buffer length. The SLIRP user-mode networking stack processes all guest-generated network packets through this path, making it directly reachable from a guest VM. A crafted packet with a manipulated size field can cause SLIRP to read or write beyond the buffer boundary in the QEMU host process.

Changes

  • net/slirp.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by Orbis Security AI
@github-actions

Copy link
Copy Markdown

Thank you for your interest in the QEMU project.

This repository is a read-only mirror of the project's repostories hosted
on https://gitlab.com/qemu-project/qemu.git.
The project does not process merge requests filed on GitHub.

QEMU welcomes contributions of code (either fixing bugs or adding new
functionality). However, we get a lot of patches, and so we have some
guidelines about contributing on the project website:
https://www.qemu.org/contribute/

@github-actions github-actions Bot closed this May 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant