Bug 2411993 (CVE-2025-29699)

Summary: CVE-2025-29699 netsurf: NetSurf use after free
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A use after free flaw has been discovered in NetSurf. The Node.textContent setter is handled by libdom's _dom_node_set_text_content function, which removes the specified node's children and replaces them with a single text node. It calls dom_node_remove_child in a loop to detach each child node from the tree. After each call, it decrements the child node's reference count via dom_node_unref, which causes the node to be freed if the count drops to 0. If a registered handler sets the parent node's text content again, a nested call to _dom_node_set_text_content will occur, and the node's children may be freed due to the reference count decrement. When the event dispatcher of the original call chain resumes execution, it may access a freed child, resulting in a use-after-free.
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: 2412081, 2412082, 2412080    
Bug Blocks:    

Description OSIDB Bzimport 2025-11-03 15:02:16 UTC
NetSurf 3.11 is vulnerable to Use After Free in dom_node_set_text_content function.