cve.bz

CVE-2022-49159 linux linux kernel: NULL Pointer Dereference

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Implement ref count for SRB The timeout handler and the done function are racing. When qla2x00_async_iocb_timeout() starts to run it can be preempted by the normal response path (via the firmware?). qla24xx_async_gpsc_sp_done() releases the SRB unconditionally. When scheduling back to qla2x00_async_iocb_timeout() qla24xx_async_abort_cmd() will access an freed sp->qpair pointer: qla2xxx [0000:83:00.0]-2871:0: Async-gpsc timeout - hdl=63d portid=234500 50:06:0e:80:08:77:b6:21. qla2xxx [0000:83:00.0]-2853:0: Async done-gpsc res 0, WWPN 50:06:0e:80:08:77:b6:21 qla2xxx [0000:83:00.0]-2854:0: Async-gpsc OUT WWPN 20:45:00:27:f8:75:33:00 speeds=2c00 speed=0400. qla2xxx [0000:83:00.0]-28d8:0: qla24xx_handle_gpsc_event 50:06:0e:80:08:77:b6:21 DS 7 LS 6 rc 0 login 1|1 rscn 1|0 lid 5 BUG: unable to handle kernel NULL pointer dereference at 0000000000000004 IP: qla24xx_async_abort_cmd+0x1b/0x1c0 [qla2xxx] Obvious solution to this is to introduce a reference counter. One reference is taken for the normal code path (the 'good' case) and one for the timeout path. As we always race between the normal good case and the timeout/abort handler we need to serialize it. Also we cannot assume any order between the handlers. Since this is slow path we can use proper synchronization via locks. When we are able to cancel a timer (del_timer returns 1) we know there can't be any error handling in progress because the timeout handler hasn't expired yet, thus we can safely decrement the refcounter by one. If we are not able to cancel the timer, we know an abort handler is running. We have to make sure we call sp->done() in the abort handlers before calling kref_put().

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-49159 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-49159?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-49159?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-49159 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-49159

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-49159](https://cve.bz/cve/badge/CVE-2022-49159.svg)](https://cve.bz/cve/CVE-2022-49159)

HTML:

<a href="https://cve.bz/cve/CVE-2022-49159"><img src="https://cve.bz/cve/badge/CVE-2022-49159.svg" alt="CVE-2022-49159"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux2.6.32 and later

Fixed in

ProductRelease lineFixed in
Linux5.155.15.33
Linux5.165.16.19
Linux5.175.17.2
Linuxlater releases5.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.17.3-1DEBIAN-CVE-2022-49159
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-49159
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2022-49159
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1008.9~20.04.1UBUNTU-CVE-2022-49159
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2022-49159
Ubuntu20.04:LTSlinux-hwe-5.155.15.0-41.44~20.04.1UBUNTU-CVE-2022-49159
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1008.11~20.04.1UBUNTU-CVE-2022-49159
Ubuntu20.04:LTSlinux-lowlatency-hwe-5.155.15.0-42.45~20.04.1UBUNTU-CVE-2022-49159
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-37.39UBUNTU-CVE-2022-49159
Ubuntu22.04:LTSlinux-aws5.15.0-1011.14UBUNTU-CVE-2022-49159
Ubuntu22.04:LTSlinux-azure5.15.0-1010.12UBUNTU-CVE-2022-49159
Ubuntu22.04:LTSlinux-gcp5.15.0-1008.12UBUNTU-CVE-2022-49159
Ubuntu22.04:LTSlinux-gke5.15.0-1008.10UBUNTU-CVE-2022-49159
14 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.201.1SUSE-SU-2025:1263-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.201.1.150300.18.120.1SUSE-SU-2025:1263-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.201.1SUSE-SU-2025:1263-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.158.1SUSE-SU-2025:1027-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.158.1SUSE-SU-2025:1027-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.158.1.150400.24.78.1SUSE-SU-2025:1027-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.100.1.150500.6.47.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.255.1SUSE-SU-2025:1293-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_671-8.5.1SUSE-SU-2025:1293-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_561-150300.7.3.1SUSE-SU-2025:1263-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_381-150400.9.3.1SUSE-SU-2025:1027-1
15 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate impact because it requires local execution privileges on a host equipped with physical QLogic Fibre Channel hardware, and successful exploitation leads strictly to a denial of service via a kernel crash without compromising data confidentiality or system integrity. Systems that do not utilize QLogic Fibre Channel Host Bus Adapters are not exposed to this flaw during standard operations. Furthermore, triggering the condition depends on narrow timing windows between command timeout processing and completion handling during asynchronous storage operations.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelOut of support scope
Red Hat Enterprise Linux 8kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernelAffected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-49159.

References

Check your stackJSON