CVE-2023-53331

Source
https://cve.org/CVERecord?id=CVE-2023-53331
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53331.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53331
Downstream
Related
Published
2025-09-16T16:12:06.788Z
Modified
2026-05-15T11:53:32.040034443Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
pstore/ram: Check start of empty przs during init
Details

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

pstore/ram: Check start of empty przs during init

After commit 30696378f68a ("pstore/ram: Do not treat empty buffers as valid"), initialization would assume a prz was valid after seeing that the buffer_size is zero (regardless of the buffer start position). This unchecked start value means it could be outside the bounds of the buffer, leading to future access panics when written to:

sysdumppanicevent+0x3b4/0x5b8 atomicnotifiercallchain+0x54/0x90 panic+0x1c8/0x42c die+0x29c/0x2a8 diekernel_fault+0x68/0x78 __dokernelfault+0x1c4/0x1e0 dobadarea+0x40/0x100 dotranslationfault+0x68/0x80 domemabort+0x68/0xf8 el1_da+0x1c/0xc0 __raw_writeb+0x38/0x174 _memcpytoio+0x40/0xac persistentramupdate+0x44/0x12c persistentramwrite+0x1a8/0x1b8 ramoopspstorewrite+0x198/0x1e8 pstoreconsolewrite+0x94/0xe0 ...

To avoid this, also check if the prz start is 0 during the initialization phase. If not, the next prz sanity check case will discover it (start > size) and zap the buffer back to a sane state.

[kees: update commit log with backtrace and clarifications]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53331.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.14.326
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.295
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.257
Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.10.195
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.15.132
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
6.1.53
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.4.16
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.5.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53331.json"