Bug 2537752

Summary: CVE-2026-95507 libslirp: libslirp: out-of-bounds read in NC-SI OEM response handler discloses host memory to guest [fedora-all]
Product: [Fedora] Fedora Reporter: Samuele Negrini <snegrini>
Component: libslirpAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: marcandre.lureau
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["8ccbda83-cf14-4e5a-9569-c4b9501e05e5"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2537747    

Description Samuele Negrini 2026-09-22 08:02:13 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.

A flaw was found in libslirp. The NC-SI OEM response handler (ncsi_rsp_handler_oem() in src/ncsi.c) reads and reflects the 4-byte mfr_id field from the incoming NC-SI OEM command packet into the outgoing response before validating that the packet is large enough to contain that field. ncsi_input() only validates pkt_len against the 16-byte NC-SI common header (the fix scope of CVE-2020-29129), leaving the OEM sub-dispatch path, added afterward, unchecked. A guest capable of sending a crafted 30-33 byte NC-SI OEM Ethernet frame (ethertype 0x88F8) can cause up to 4 bytes of adjacent host RX-buffer memory to be disclosed back to the guest in the NC-SI response; if the instance is configured with a Mellanox manufacturer ID, a second handler (ncsi_rsp_handler_oem_mlx()) similarly over-reads up to 4 additional bytes from cmd->data. This is a guest-triggerable, bounded host memory disclosure; there is no write and no code execution.