# CVE-2023-53265: ubi: ensure that VID header offset + VID header size \<= alloc, size

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; 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-125
- **Published:** 2025-09-16T08:06:55.695Z
- **Modified:** 2026-06-17T06:44:40.700Z

## Who should check

- Anyone running Linux \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 61e04db3bec87f7dd10074296deb7d083e2ccade; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 771e207a839a29ba943e89f473b0fecd16089e2e; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< f7adb740f97b6fa84e658892dcb08e37a31a4e77; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 846bfba34175c23b13cc2023c2d67b96e8c14c43; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 701bb3ed5a88a73ebbe1266895bdeff065226dca; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 61aeba0e4b4124cfe3c5427feaf29c626dfa89e5; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< e1b73fe4f4c6bb80755eb4bf4b867a8fd8b1a7fe; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 1b42b1a36fc946f0d7088425b90d491b4257ca3e
- Anyone running Linux 2.6.22

## Description

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

ubi: ensure that VID header offset + VID header size \<= alloc, size

Ensure that the VID header offset + VID header size does not exceed
the allocated area to avoid slab OOB.

BUG: KASAN: slab-out-of-bounds in crc32\_body lib/crc32.c:111 \[inline\]
BUG: KASAN: slab-out-of-bounds in crc32\_le\_generic lib/crc32.c:179 \[inline\]
BUG: KASAN: slab-out-of-bounds in crc32\_le\_base+0x58c/0x626 lib/crc32.c:197
Read of size 4 at addr ffff88802bb36f00 by task syz-executor136/1555

CPU: 2 PID: 1555 Comm: syz-executor136 Tainted: G        W
6.0.0-1868 \#1
Hardware name: Red Hat KVM, BIOS 1.13.0-2.module+el8.3.0+7860+a7792d29
04/01/2014
Call Trace:
  \<TASK\>
  \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
  dump\_stack\_lvl+0x85/0xad lib/dump\_stack.c:106
  print\_address\_description mm/kasan/report.c:317 \[inline\]
  print\_report.cold.13+0xb6/0x6bb mm/kasan/report.c:433
  kasan\_report+0xa7/0x11b mm/kasan/report.c:495
  crc32\_body lib/crc32.c:111 \[inline\]
  crc32\_le\_generic lib/crc32.c:179 \[inline\]
  crc32\_le\_base+0x58c/0x626 lib/crc32.c:197
  ubi\_io\_write\_vid\_hdr+0x1b7/0x472 drivers/mtd/ubi/io.c:1067
  create\_vtbl+0x4d5/0x9c4 drivers/mtd/ubi/vtbl.c:317
  create\_empty\_lvol drivers/mtd/ubi/vtbl.c:500 \[inline\]
  ubi\_read\_volume\_table+0x67b/0x288a drivers/mtd/ubi/vtbl.c:812
  ubi\_attach+0xf34/0x1603 drivers/mtd/ubi/attach.c:1601
  ubi\_attach\_mtd\_dev+0x6f3/0x185e drivers/mtd/ubi/build.c:965
  ctrl\_cdev\_ioctl+0x2db/0x347 drivers/mtd/ubi/cdev.c:1043
  vfs\_ioctl fs/ioctl.c:51 \[inline\]
  \_\_do\_sys\_ioctl fs/ioctl.c:870 \[inline\]
  \_\_se\_sys\_ioctl fs/ioctl.c:856 \[inline\]
  \_\_x64\_sys\_ioctl+0x193/0x213 fs/ioctl.c:856
  do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
  do\_syscall\_64+0x3e/0x86 arch/x86/entry/common.c:80
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0x0
RIP: 0033:0x7f96d5cf753d
Code:
RSP: 002b:00007fffd72206f8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f96d5cf753d
RDX: 0000000020000080 RSI: 0000000040186f40 RDI: 0000000000000003
RBP: 0000000000400cd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000400be0
R13: 00007fffd72207e0 R14: 0000000000000000 R15: 0000000000000000
  \</TASK\>

Allocated by task 1555:
  kasan\_save\_stack+0x20/0x3d mm/kasan/common.c:38
  kasan\_set\_track mm/kasan/common.c:45 \[inline\]
  set\_alloc\_info mm/kasan/common.c:437 \[inline\]
  \_\_\_\_kasan\_kmalloc mm/kasan/common.c:516 \[inline\]
  \_\_kasan\_kmalloc+0x88/0xa3 mm/kasan/common.c:525
  kasan\_kmalloc include/linux/kasan.h:234 \[inline\]
  \_\_kmalloc+0x138/0x257 mm/slub.c:4429
  kmalloc include/linux/slab.h:605 \[inline\]
  ubi\_alloc\_vid\_buf drivers/mtd/ubi/ubi.h:1093 \[inline\]
  create\_vtbl+0xcc/0x9c4 drivers/mtd/ubi/vtbl.c:295
  create\_empty\_lvol drivers/mtd/ubi/vtbl.c:500 \[inline\]
  ubi\_read\_volume\_table+0x67b/0x288a drivers/mtd/ubi/vtbl.c:812
  ubi\_attach+0xf34/0x1603 drivers/mtd/ubi/attach.c:1601
  ubi\_attach\_mtd\_dev+0x6f3/0x185e drivers/mtd/ubi/build.c:965
  ctrl\_cdev\_ioctl+0x2db/0x347 drivers/mtd/ubi/cdev.c:1043
  vfs\_ioctl fs/ioctl.c:51 \[inline\]
  \_\_do\_sys\_ioctl fs/ioctl.c:870 \[inline\]
  \_\_se\_sys\_ioctl fs/ioctl.c:856 \[inline\]
  \_\_x64\_sys\_ioctl+0x193/0x213 fs/ioctl.c:856
  do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
  do\_syscall\_64+0x3e/0x86 arch/x86/entry/common.c:80
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0x0

The buggy address belongs to the object at ffff88802bb36e00
  which belongs to the cache kmalloc-256 of size 256
The buggy address is located 0 bytes to the right of
  256-byte region \[ffff88802bb36e00, ffff88802bb36f00)

The buggy address belongs to the physical page:
page:00000000ea4d1263 refcount:1 mapcount:0 mapping:0000000000000000
index:0x0 pfn:0x2bb36
head:00000000ea4d1263 order:1 compound\_mapcount:0 compound\_pincount:0
flags: 0xfffffc0010200(slab\|head\|node=0\|zone=1\|lastcpupid=0x1fffff)
raw: 000fffffc0010200 ffffea000066c300 dead000000000003 ffff888100042b40
raw: 0000000000000000 00000000001
---truncated---

## Affected and fixed versions

- Linux: \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 61e04db3bec87f7dd10074296deb7d083e2ccade; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 771e207a839a29ba943e89f473b0fecd16089e2e; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< f7adb740f97b6fa84e658892dcb08e37a31a4e77; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 846bfba34175c23b13cc2023c2d67b96e8c14c43; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 701bb3ed5a88a73ebbe1266895bdeff065226dca; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 61aeba0e4b4124cfe3c5427feaf29c626dfa89e5; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< e1b73fe4f4c6bb80755eb4bf4b867a8fd8b1a7fe; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 1b42b1a36fc946f0d7088425b90d491b4257ca3e (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- Upgrade Linux to 1b42b1a36fc946f0d7088425b90d491b4257ca3e 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-53265. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53265.md
Affected: Linux >= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 61e04db3bec87f7dd10074296deb7d083e2ccade; >= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 771e207a839a29ba943e89f473b0fecd16089e2e; >= 801c135ce73d5df1caf3eca35b66a10824ae0707, < f7adb740f97b6fa84e658892dcb08e37a31a4e77; >= 801c135ce73d5df1caf3eca…
Fixed in: Linux 61e04db3bec87f7dd10074296deb7d083e2ccade, Linux 771e207a839a29ba943e89f473b0fecd16089e2e, Linux 846bfba34175c23b13cc2023c2d67b96e8c14c43, Linux 701bb3ed5a88a73ebbe1266895bdeff065226dca, Linux 61aeba0e4b4124cfe3c5427feaf29c626dfa89e5, Linux 1b42b1a36fc946f0d7088425b90d491b4257ca3e

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-53265 being exploited?

There is no confirmed exploitation: CVE-2023-53265 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-53265?

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

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

Linux \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 61e04db3bec87f7dd10074296deb7d083e2ccade; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 771e207a839a29ba943e89f473b0fecd16089e2e; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< f7adb740f97b6fa84e658892dcb08e37a31a4e77; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 846bfba34175c23b13cc2023c2d67b96e8c14c43; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 701bb3ed5a88a73ebbe1266895bdeff065226dca; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 61aeba0e4b4124cfe3c5427feaf29c626dfa89e5; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< e1b73fe4f4c6bb80755eb4bf4b867a8fd8b1a7fe; \>= 801c135ce73d5df1caf3eca35b66a10824ae0707, \< 1b42b1a36fc946f0d7088425b90d491b4257ca3e; Linux 2.6.22.

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

Yes. Fixed in Linux 61e04db3bec87f7dd10074296deb7d083e2ccade, Linux 771e207a839a29ba943e89f473b0fecd16089e2e, Linux 846bfba34175c23b13cc2023c2d67b96e8c14c43, Linux 701bb3ed5a88a73ebbe1266895bdeff065226dca, Linux 61aeba0e4b4124cfe3c5427feaf29c626dfa89e5, Linux 1b42b1a36fc946f0d7088425b90d491b4257ca3e. Upgrade Linux to 1b42b1a36fc946f0d7088425b90d491b4257ca3e or later.

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

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/61e04db3bec87f7dd10074296deb7d083e2ccade>
- patch: <https://git.kernel.org/stable/c/771e207a839a29ba943e89f473b0fecd16089e2e>
- patch: <https://git.kernel.org/stable/c/f7adb740f97b6fa84e658892dcb08e37a31a4e77>
- patch: <https://git.kernel.org/stable/c/846bfba34175c23b13cc2023c2d67b96e8c14c43>
- patch: <https://git.kernel.org/stable/c/701bb3ed5a88a73ebbe1266895bdeff065226dca>
- patch: <https://git.kernel.org/stable/c/61aeba0e4b4124cfe3c5427feaf29c626dfa89e5>
- patch: <https://git.kernel.org/stable/c/e1b73fe4f4c6bb80755eb4bf4b867a8fd8b1a7fe>
- patch: <https://git.kernel.org/stable/c/1b42b1a36fc946f0d7088425b90d491b4257ca3e>

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

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