# CVE-2023-53282: scsi: lpfc: Fix use-after-free KFENCE violation during sysfs firmware write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-16T08:11:16.083Z
- **Modified:** 2026-06-17T06:44:44.110Z

## Who should check

- Anyone running Linux \>= 52d5244096017bbd11164479116baceaede342b0, \< 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc; \>= 52d5244096017bbd11164479116baceaede342b0, \< 8dfefa8f424ab208e552df1bfd008b732f3d0ad1; \>= 52d5244096017bbd11164479116baceaede342b0, \< 8becb97918f04bb177bc9c4e00c2bdb302e00944; \>= 52d5244096017bbd11164479116baceaede342b0, \< 21681b81b9ae548c5dae7ae00d931197a27f480c
- Anyone running Linux 3.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Fix use-after-free KFENCE violation during sysfs firmware write

During the sysfs firmware write process, a use-after-free read warning is
logged from the lpfc\_wr\_object() routine:

  BUG: KFENCE: use-after-free read in lpfc\_wr\_object+0x235/0x310 \[lpfc\]
  Use-after-free read at 0x0000000000cf164d (in kfence-\#111):
  lpfc\_wr\_object+0x235/0x310 \[lpfc\]
  lpfc\_write\_firmware.cold+0x206/0x30d \[lpfc\]
  lpfc\_sli4\_request\_firmware\_update+0xa6/0x100 \[lpfc\]
  lpfc\_request\_firmware\_upgrade\_store+0x66/0xb0 \[lpfc\]
  kernfs\_fop\_write\_iter+0x121/0x1b0
  new\_sync\_write+0x11c/0x1b0
  vfs\_write+0x1ef/0x280
  ksys\_write+0x5f/0xe0
  do\_syscall\_64+0x59/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

The driver accessed wr\_object pointer data, which was initialized into
mailbox payload memory, after the mailbox object was released back to the
mailbox pool.

Fix by moving the mailbox free calls to the end of the routine ensuring
that we don't reference internal mailbox memory after release.

## Affected and fixed versions

- Linux: \>= 52d5244096017bbd11164479116baceaede342b0, \< 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc; \>= 52d5244096017bbd11164479116baceaede342b0, \< 8dfefa8f424ab208e552df1bfd008b732f3d0ad1; \>= 52d5244096017bbd11164479116baceaede342b0, \< 8becb97918f04bb177bc9c4e00c2bdb302e00944; \>= 52d5244096017bbd11164479116baceaede342b0, \< 21681b81b9ae548c5dae7ae00d931197a27f480c (cvelist)
- Linux: 3.0 (cvelist)

## Mitigation

- Upgrade Linux to 21681b81b9ae548c5dae7ae00d931197a27f480c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53282. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53282.md
Affected: Linux >= 52d5244096017bbd11164479116baceaede342b0, < 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc; >= 52d5244096017bbd11164479116baceaede342b0, < 8dfefa8f424ab208e552df1bfd008b732f3d0ad1; >= 52d5244096017bbd11164479116baceaede342b0, < 8becb97918f04bb177bc9c4e00c2bdb302e00944; >= 52d5244096017bbd1116447…
Fixed in: Linux 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc, Linux 8dfefa8f424ab208e552df1bfd008b732f3d0ad1, Linux 8becb97918f04bb177bc9c4e00c2bdb302e00944, Linux 21681b81b9ae548c5dae7ae00d931197a27f480c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53282 being exploited?

There is no confirmed exploitation: CVE-2023-53282 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53282?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53282?

Linux \>= 52d5244096017bbd11164479116baceaede342b0, \< 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc; \>= 52d5244096017bbd11164479116baceaede342b0, \< 8dfefa8f424ab208e552df1bfd008b732f3d0ad1; \>= 52d5244096017bbd11164479116baceaede342b0, \< 8becb97918f04bb177bc9c4e00c2bdb302e00944; \>= 52d5244096017bbd11164479116baceaede342b0, \< 21681b81b9ae548c5dae7ae00d931197a27f480c; Linux 3.0.

### Is there a fix for CVE-2023-53282?

Yes. Fixed in Linux 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc, Linux 8dfefa8f424ab208e552df1bfd008b732f3d0ad1, Linux 8becb97918f04bb177bc9c4e00c2bdb302e00944, Linux 21681b81b9ae548c5dae7ae00d931197a27f480c. Upgrade Linux to 21681b81b9ae548c5dae7ae00d931197a27f480c or later.

### How do I check if I'm affected by CVE-2023-53282?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc>
- patch: <https://git.kernel.org/stable/c/8dfefa8f424ab208e552df1bfd008b732f3d0ad1>
- patch: <https://git.kernel.org/stable/c/8becb97918f04bb177bc9c4e00c2bdb302e00944>
- patch: <https://git.kernel.org/stable/c/21681b81b9ae548c5dae7ae00d931197a27f480c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53282>

HTML: <https://flawdb.com/CVE-2023-53282> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53282>
