kcve.ai취약점 정보 · 내 자산 확인

CVE-2023-31137 MaraDNS Integer Underflow Vulnerability in DNS Packet Decompression

설명

MaraDNS is open-source software that implements the Domain Name System (DNS). In version 3.5.0024 and prior, a remotely exploitable integer underflow vulnerability in the DNS packet decompression function allows an attacker to cause a Denial of Service by triggering an abnormal program termination. The vulnerability exists in the `decomp_get_rddata` function within the `Decompress.c` file. When handling a DNS packet with an Answer RR of qtype 16 (TXT record) and any qclass, if the `rdlength` is smaller than `rdata`, the result of the line `Decompress.c:886` is a negative number `len = rdlength - total;`. This value is then passed to the `decomp_append_bytes` function without proper validation, causing the program to attempt to allocate a massive chunk of memory that is impossible to allocate. Consequently, the program exits with an error code of 64, causing a Denial of Service. One proposed fix for this vulnerability is to patch `Decompress.c:887` by breaking `if(len <= 0)`, which has been incorporated in version 3.5.0036 via commit bab062bde40b2ae8a91eecd522e84d8b993bab58.

영향 받는 제품 제품 2개

  • samboy

    MaraDNS

    영향 받는 버전

    • 3.5.0024 이하

    해결 버전

    해결된 버전 정보가 없습니다.

  • maradns

    maradns

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 3.4.10 미만
    • 3.5.0001 이상 3.5.0036 미만

    해결 버전

    • 3.4.10 이상
    • 3.5.0036 이상

참고 자료 7건

‹ 목록

점검 지원 범위 문의

도입 문의