createemptylvol in drivers/mtd/ubi/vtbl.c in the Linux kernel through 6.7.4 can attempt to allocate zero bytes, and crash, because of a missing check for ubi->leb_size.
[
{
"target": {
"file": "drivers/mtd/ubi/vtbl.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@68a24aba7c593eafa8fd00f2f76407b9b32b47a9",
"id": "CVE-2024-25739-7770760f",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180338146469145620342863515134588329598",
"338322976361457968342155044656761451156",
"102809870490902701291087733253432761532"
]
},
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "ubi_read_volume_table",
"file": "drivers/mtd/ubi/vtbl.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@68a24aba7c593eafa8fd00f2f76407b9b32b47a9",
"id": "CVE-2024-25739-d82fd2d7",
"signature_version": "v1",
"digest": {
"function_hash": "135083286514489209299596479964593592928",
"length": 1298.0
},
"deprecated": false,
"signature_type": "Function"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-25739.json"