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

CVE-2021-47334 misc/libmasm/module: Fix two use after free in ibmasm_init_one

설명

In the Linux kernel, the following vulnerability has been resolved: misc/libmasm/module: Fix two use after free in ibmasm_init_one In ibmasm_init_one, it calls ibmasm_init_remote_input_dev(). Inside ibmasm_init_remote_input_dev, mouse_dev and keybd_dev are allocated by input_allocate_device(), and assigned to sp->remote.mouse_dev and sp->remote.keybd_dev respectively. In the err_free_devices error branch of ibmasm_init_one, mouse_dev and keybd_dev are freed by input_free_device(), and return error. Then the execution runs into error_send_message error branch of ibmasm_init_one, where ibmasm_free_remote_input_dev(sp) is called to unregister the freed sp->remote.mouse_dev and sp->remote.keybd_dev. My patch add a "error_init_remote" label to handle the error of ibmasm_init_remote_input_dev(), to avoid the uaf bugs.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 2.6.16

    해결 버전

    • 2.6.16 미만
    • 4.4.276 이상
    • 4.9.276 이상
    • 4.14.240 이상
    • 4.19.198 이상
    • 5.4.134 이상
    • 5.10.52 이상
    • 5.12.19 이상
    외 1개 구간 펼치기
    • 5.13.4 이상

참고 자료 9건

‹ 목록

점검 지원 범위 문의

도입 문의