CVE-2021-47198
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47198 is a use-after-free vulnerability discovered in the Linux kernel's SCSI lpfc driver. The vulnerability was disclosed and patched in late 2021, affecting Linux kernel versions up to (excluding) 5.15.5. The issue occurs in the lpfc_unreg_rpi() routine of the lpfc driver when unloading the driver (NVD, Kernel Patch).

Technical details

The vulnerability stems from a flag management issue where the NLP_REG_LOGIN_SEND nlp_flag is set in lpfc_reg_fab_ctrl_node() but not cleared upon login completion. This allows a second call to lpfc_unreg_rpi() to proceed with nlp_rpi set to LPFC_RPI_ALLOW_ERROR, resulting in a use-after-free condition when used as an rpi_ids array index. The issue is detected with the error message "KASAN: use-after-free in lpfc_unreg_rpi+0x1b1b". The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could potentially lead to system crashes, memory corruption, or privilege escalation due to the use-after-free condition in the kernel's SCSI driver. This could affect systems using the lpfc driver for Fibre Channel host bus adapter support (NVD).

Exploitability

The vulnerability requires local access and can be triggered when unloading the lpfc driver. No known exploits in the wild have been reported (NVD).

Mitigation and workarounds

The vulnerability has been fixed by clearing the NLP_REG_LOGIN_SEND nlp_flag in lpfc_mbx_cmpl_fc_reg_login(). Users should upgrade to Linux kernel version 5.15.5 or later which contains the fix. The patch has been backported to stable kernel trees (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management