{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-53331","id":"CVE-2023-53331","title":"pstore/ram: Check start of empty przs during init","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npstore/ram: Check start of empty przs during init\n\nAfter commit 30696378f68a (\"pstore/ram: Do not treat empty buffers as\nvalid\"), initialization would assume a prz was valid after seeing that\nthe buffer_size is zero (regardless of the buffer start position). This\nunchecked start value means it could be outside the bounds of the b","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\npstore/ram: Check start of empty przs during init\n\nAfter commit 30696378f68a (\"pstore/ram: Do not treat empty buffers as\nvalid\"), initialization would assume a prz was valid after seeing that\nthe buffer_size is zero (regardless of the buffer start position). This\nunchecked start value means it could be outside the bounds of the buffer,\nleading to future access panics when written to:\n\n sysdump_panic_event+0x3b4/0x5b8\n atomic_notifier_call_chain+0x54/0x90\n panic+0x1c8/0x42c\n die+0x29c/0x2a8\n die_kernel_fault+0x68/0x78\n __do_kernel_fault+0x1c4/0x1e0\n do_bad_area+0x40/0x100\n do_translation_fault+0x68/0x80\n do_mem_abort+0x68/0xf8\n el1_da+0x1c/0xc0\n __raw_writeb+0x38/0x174\n __memcpy_toio+0x40/0xac\n persistent_ram_update+0x44/0x12c\n persistent_ram_write+0x1a8/0x1b8\n ramoops_pstore_write+0x198/0x1e8\n pstore_console_write+0x94/0xe0\n ...\n\nTo avoid this, also check if the prz start is 0 during the initialization\nphase. If not, the next prz sanity check case will discover it (start >\nsize) and zap the buffer back to a sane state.\n\n[kees: update commit log with backtrace and clarifications]","published":"2025-09-16T16:12:06.788Z","updated":"2026-11-17T07:01:36.040508444Z","reserved":"2025-09-16T16:08:59.564Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e1e3a46706bd4037e8b7407dc660ae6e05b8ac56","lessThan":"89312657337e6e03ad6e9ea1a462bd9c158c85c8","status":"affected","versionType":"git"},{"version":"265242d82a3c6a8bd9120d06b4801f8d7ae9a346","lessThan":"c807ccdd812d18985860504b503899f3140a9549","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"e972231db29b5d1dccc13bf9d5ba55b6979a69ed","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"dc2f60de9a7d3efd982440117dab5579898d808c","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"fedecaeef88899d940b69368c996e8b3b0b8650d","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"e95d7a8a6edd14f8fab44c777dd7281db91f6ae2","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"f77990358628b01bdc03752126ff5f716ea37615","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"25fb4e3402d46f425ec135ef6f09792a4c1b3003","status":"affected","versionType":"git"},{"version":"30696378f68a9e3dad6bfe55938b112e72af00c2","lessThan":"fe8c3623ab06603eb760444a032d426542212021","status":"affected","versionType":"git"},{"version":"ec7f99261da9a20d63cbd273511a11a2efe698f2","status":"affected","versionType":"git"},{"version":"f250e4c562a3bd106575032666e9ef46f31231f8","status":"affected","versionType":"git"},{"version":"fffdbf586866e9500b53c9d4b061d3983720375a","status":"affected","versionType":"git"},{"version":"9e969ba431b46b1891c88cea36f722f3bfe8a180","status":"affected","versionType":"git"},{"version":"4.14.96","lessThan":"4.14.326","status":"affected","versionType":"semver"},{"version":"4.19.18","lessThan":"4.19.295","status":"affected","versionType":"semver"},{"version":"3.18.133","lessThan":"3.19","status":"affected","versionType":"semver"},{"version":"4.4.172","lessThan":"4.5","status":"affected","versionType":"semver"},{"version":"4.9.153","lessThan":"4.10","status":"affected","versionType":"semver"},{"version":"4.20.5","lessThan":"4.21","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","lessThan":"5.0","status":"unaffected","versionType":"semver"},{"version":"4.14.326","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.295","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.257","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.195","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.132","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.53","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.4.16","lessThanOrEqual":"6.4.*","status":"unaffected","versionType":"semver"},{"version":"6.5.3","lessThanOrEqual":"6.5.*","status":"unaffected","versionType":"semver"},{"version":"6.6","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/89312657337e6e03ad6e9ea1a462bd9c158c85c8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c807ccdd812d18985860504b503899f3140a9549","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e972231db29b5d1dccc13bf9d5ba55b6979a69ed","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dc2f60de9a7d3efd982440117dab5579898d808c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fedecaeef88899d940b69368c996e8b3b0b8650d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e95d7a8a6edd14f8fab44c777dd7281db91f6ae2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f77990358628b01bdc03752126ff5f716ea37615","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/25fb4e3402d46f425ec135ef6f09792a4c1b3003","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fe8c3623ab06603eb760444a032d426542212021","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53331.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53331","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00167,"epssPercentile":0.0611,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-53331","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53331","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-53331","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-53331","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}