{"id":"CVE-2022-50288","aliases":["CVE-2022-50288"],"related":[],"kind":"vulnerability","state":"published","title":"qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nqlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure\n\nadapter->dcb 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nqlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure\n\nadapter->dcb 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.","source":"cvelist"}],"published":"2025-09-15T14:21:24.427Z","modified":"2026-06-17T05:23:09.660Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"36999236f0b12d5de21a6f40e93b570727b9ceb2","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"d12a7510293d3370b234b0b7c5eda33e58786768","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"8f97eeb02a553cdc78c83a0596448a370e1518c4","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"513787ff9a331b461115e8a145a983d650a84fcb","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"95df720e64a6409d8152827a776c43f615e3321a","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"8df1dc04ce0e4c03b51a756749c250a9cb17d707","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"a2a694e6edbdb3efb34e1613a31fdcf6cf444a55","status":"affected"},{"type":"git","introduced":"3c44bba1d270cb1620b4fe76786d0968118cb86b","fixed":"13a7c8964afcd8ca43c0b6001ebb0127baa95362","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.14","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.87","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.19","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.5","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.14","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.87"},{"status":"affected","introduced":"5.16","fixed":"6.0.19"},{"status":"affected","introduced":"6.1","fixed":"6.1.5"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/36999236f0b12d5de21a6f40e93b570727b9ceb2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d12a7510293d3370b234b0b7c5eda33e58786768","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f97eeb02a553cdc78c83a0596448a370e1518c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/513787ff9a331b461115e8a145a983d650a84fcb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95df720e64a6409d8152827a776c43f615e3321a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8df1dc04ce0e4c03b51a756749c250a9cb17d707","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2a694e6edbdb3efb34e1613a31fdcf6cf444a55","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13a7c8964afcd8ca43c0b6001ebb0127baa95362","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50288","url":"https://www.cve.org/CVERecord?id=CVE-2022-50288","licence":"CVE Terms of Use","modified":"2026-05-11T19:16:25.955Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50288","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50288","licence":"Public domain","modified":"2026-06-17T05:23:09.660Z"}],"updatedAt":"2026-11-25T22:58:21.149Z","epss":{"score":0.00168,"percentile":0.06492,"date":"2026-12-01T12:00:22.000Z"}}