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

CVE-2026-31704 ksmbd: use check_add_overflow() to prevent u16 DACL size overflow

설명

In the Linux kernel, the following vulnerability has been resolved: ksmbd: use check_add_overflow() to prevent u16 DACL size overflow set_posix_acl_entries_dacl() and set_ntacl_dacl() accumulate ACE sizes in u16 variables. When a file has many POSIX ACL entries, the accumulated size can wrap past 65535, causing the pointer arithmetic (char *)pndace + *size to land within already-written ACEs. Subsequent writes then overwrite earlier entries, and pndacl->size gets a truncated value. Use check_add_overflow() at each accumulation point to detect the wrap before it corrupts the buffer, consistent with existing check_mul_overflow() usage elsewhere in smbacl.c.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 5.15

    해결 버전

    • 5.15 미만
    • 6.1.175 이상
    • 6.6.136 이상
    • 6.12.84 이상
    • 6.18.25 이상
    • 7.0.2 이상

참고 자료 6건

‹ 목록

점검 지원 범위 문의

도입 문의