{"id":"CVE-2022-50288","summary":"qlcnic: prevent -\u003edcb use-after-free on qlcnic_dcb_enable() failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nqlcnic: prevent -\u003edcb use-after-free on qlcnic_dcb_enable() failure\n\nadapter-\u003edcb would get silently freed inside qlcnic_dcb_enable() in\ncase qlcnic_dcb_attach() would return an error, which always happens\nunder OOM conditions. This would lead to use-after-free because both\nof the existing callers invoke qlcnic_dcb_get_info() on the obtained\npointer, which is potentially freed at that point.\n\nPropagate errors from qlcnic_dcb_enable(), and instead free the dcb\npointer at callsite using qlcnic_dcb_free(). This also removes the now\nunused qlcnic_clear_dcb_ops() helper, which was a simple wrapper around\nkfree() also causing memory leaks for partially initialized dcb.\n\nFound by Linux Verification Center (linuxtesting.org) with the SVACE\nstatic analysis tool.","modified":"2026-04-02T08:28:22.749482Z","published":"2025-09-15T14:21:24.427Z","related":["SUSE-SU-2025:03614-1","SUSE-SU-2025:03615-1","SUSE-SU-2025:3761-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50288.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/13a7c8964afcd8ca43c0b6001ebb0127baa95362"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36999236f0b12d5de21a6f40e93b570727b9ceb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/513787ff9a331b461115e8a145a983d650a84fcb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8df1dc04ce0e4c03b51a756749c250a9cb17d707"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f97eeb02a553cdc78c83a0596448a370e1518c4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95df720e64a6409d8152827a776c43f615e3321a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a2a694e6edbdb3efb34e1613a31fdcf6cf444a55"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d12a7510293d3370b234b0b7c5eda33e58786768"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50288.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50288"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b"},{"fixed":"36999236f0b12d5de21a6f40e93b570727b9ceb2"},{"fixed":"d12a7510293d3370b234b0b7c5eda33e58786768"},{"fixed":"8f97eeb02a553cdc78c83a0596448a370e1518c4"},{"fixed":"513787ff9a331b461115e8a145a983d650a84fcb"},{"fixed":"95df720e64a6409d8152827a776c43f615e3321a"},{"fixed":"8df1dc04ce0e4c03b51a756749c250a9cb17d707"},{"fixed":"a2a694e6edbdb3efb34e1613a31fdcf6cf444a55"},{"fixed":"13a7c8964afcd8ca43c0b6001ebb0127baa95362"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50288.json"}}],"schema_version":"1.7.5"}