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

CVE-2026-31478 ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()

설명

In the Linux kernel, the following vulnerability has been resolved: ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len() After this commit (e2b76ab8b5c9 "ksmbd: add support for read compound"), response buffer management was changed to use dynamic iov array. In the new design, smb2_calc_max_out_buf_len() expects the second argument (hdr2_len) to be the offset of ->Buffer field in the response structure, not a hardcoded magic number. Fix the remaining call sites to use the correct offsetof() value.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 5.15.145 이상 5.15.203 미만
    • 6.1.71 이상 6.1.168 미만
    • 6.6

    해결 버전

    • 5.15.203 이상
    • 6.1.168 이상
    • 6.6 미만
    • 6.6.131 이상
    • 6.12.80 이상
    • 6.18.21 이상
    • 6.19.11 이상

참고 자료 7건

‹ 목록

점검 지원 범위 문의

도입 문의