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

CVE-2025-40078 bpf: Explicitly check accesses to bpf_sock_addr

설명

In the Linux kernel, the following vulnerability has been resolved: bpf: Explicitly check accesses to bpf_sock_addr Syzkaller found a kernel warning on the following sock_addr program: 0: r0 = 0 1: r2 = *(u32 *)(r1 +60) 2: exit which triggers: verifier bug: error during ctx access conversion (0) This is happening because offset 60 in bpf_sock_addr corresponds to an implicit padding of 4 bytes, right after msg_src_ip4. Access to this padding isn't rejected in sock_addr_is_valid_access and it thus later fails to convert the access. This patch fixes it by explicitly checking the various fields of bpf_sock_addr in sock_addr_is_valid_access. I checked the other ctx structures and is_valid_access functions and didn't find any other similar cases. Other cases of (properly handled) padding are covered in new tests in a subsequent patch.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 4.18

    해결 버전

    • 4.18 미만
    • 5.4.301 이상
    • 5.10.246 이상
    • 5.15.195 이상
    • 6.1.156 이상
    • 6.6.112 이상
    • 6.12.53 이상
    • 6.17.3 이상

참고 자료 8건

‹ 목록

점검 지원 범위 문의

도입 문의