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

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-16T08:11:16.083Z
- Modified: 2026-06-17T06:44:44.110Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 52d5244096017bbd11164479116baceaede342b0 before 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc; from 52d5244096017bbd11164479116baceaede342b0 before 8dfefa8f424ab208e552df1bfd008b732f3d0ad1; from 52d5244096017bbd11164479116baceaede342b0 before 8becb97918f04bb177bc9c4e00c2bdb302e00944; from 52d5244096017bbd11164479116baceaede342b0 before 21681b81b9ae548c5dae7ae00d931197a27f480c; 3.0 (not affected: before 3.0; from 5.15.99 up to 5.15.*; from 6.1.16 up to 6.1.*; from 6.2.3 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: before 5.15.99; from 5.16 before 6.1.16; from 6.2 before 6.2.3

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2023-53282](https://www.cve.org/CVERecord?id=CVE-2023-53282), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53282](https://nvd.nist.gov/vuln/detail/CVE-2023-53282), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53282 · Whole record: https://cve.day/CVE-2023-53282.json · Rebuilt by cve.day 2026-11-25T22:58:34.811Z
