lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 22 Mar 2021 23:19:07 +0800 (GMT+08:00)
From:   lyl2019@...l.ustc.edu.cn
To:     shshaikh@...vell.com, manishc@...vell.com,
        GR-Linux-NIC-Dev@...vell.com, davem@...emloft.net, kuba@...nel.org
Cc:     netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [Bug] qlogic/qlcnic: Report a potential use after free in
 qlcnic_probe

Hi,
    my static analyzer tool reported a potential uaf in qlcnic_probe.

The problem file is drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c in
Linux Kernel-5.12-rc2.

In funtion qlcnic_probe around line 2623,  it calls qlcnic_dcb_enable() 
to enable adapter->dcb. But the adapter->dcb could be freed inside
this callee when qlcnic_dcb_attach(dcb) return non-zero. 

Later the adapter->dcb is used by qlcnic_dcb_get_info(adapter->dcb) 
and could cause a use after free.

Thanks for your time.




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ