{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-53344","id":"CVE-2023-53344","title":"can: bcm: bcm_tx_setup(): fix KMSAN uninit-value in vfs_write","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: bcm: bcm_tx_setup(): fix KMSAN uninit-value in vfs_write\n\nSyzkaller reported the following issue:\n\n=====================================================\nBUG: KMSAN: uninit-value in aio_rw_done fs/aio.c:1520 [inline]\nBUG: KMSAN: uninit-value in aio_write+0x899/0x950 fs/aio.c:1600\n aio_rw_done fs/aio.c:1520 [inline]\n aio_write","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: bcm: bcm_tx_setup(): fix KMSAN uninit-value in vfs_write\n\nSyzkaller reported the following issue:\n\n=====================================================\nBUG: KMSAN: uninit-value in aio_rw_done fs/aio.c:1520 [inline]\nBUG: KMSAN: uninit-value in aio_write+0x899/0x950 fs/aio.c:1600\n aio_rw_done fs/aio.c:1520 [inline]\n aio_write+0x899/0x950 fs/aio.c:1600\n io_submit_one+0x1d1c/0x3bf0 fs/aio.c:2019\n __do_sys_io_submit fs/aio.c:2078 [inline]\n __se_sys_io_submit+0x293/0x770 fs/aio.c:2048\n __x64_sys_io_submit+0x92/0xd0 fs/aio.c:2048\n do_syscall_x64 arch/x86/entry/common.c:50 [inline]\n do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80\n entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nUninit was created at:\n slab_post_alloc_hook mm/slab.h:766 [inline]\n slab_alloc_node mm/slub.c:3452 [inline]\n __kmem_cache_alloc_node+0x71f/0xce0 mm/slub.c:3491\n __do_kmalloc_node mm/slab_common.c:967 [inline]\n __kmalloc+0x11d/0x3b0 mm/slab_common.c:981\n kmalloc_array include/linux/slab.h:636 [inline]\n bcm_tx_setup+0x80e/0x29d0 net/can/bcm.c:930\n bcm_sendmsg+0x3a2/0xce0 net/can/bcm.c:1351\n sock_sendmsg_nosec net/socket.c:714 [inline]\n sock_sendmsg net/socket.c:734 [inline]\n sock_write_iter+0x495/0x5e0 net/socket.c:1108\n call_write_iter include/linux/fs.h:2189 [inline]\n aio_write+0x63a/0x950 fs/aio.c:1600\n io_submit_one+0x1d1c/0x3bf0 fs/aio.c:2019\n __do_sys_io_submit fs/aio.c:2078 [inline]\n __se_sys_io_submit+0x293/0x770 fs/aio.c:2048\n __x64_sys_io_submit+0x92/0xd0 fs/aio.c:2048\n do_syscall_x64 arch/x86/entry/common.c:50 [inline]\n do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80\n entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nCPU: 1 PID: 5034 Comm: syz-executor350 Not tainted 6.2.0-rc6-syzkaller-80422-geda666ff2276 #0\nHardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023\n=====================================================\n\nWe can follow the call chain and find that 'bcm_tx_setup' function\ncalls 'memcpy_from_msg' to copy some content to the newly allocated\nframe of 'op->frames'. After that the 'len' field of copied structure\nbeing compared with some constant value (64 or 8). However, if\n'memcpy_from_msg' returns an error, we will compare some uninitialized\nmemory. This triggers 'uninit-value' issue.\n\nThis patch will add 'memcpy_from_msg' possible errors processing to\navoid uninit-value issue.\n\nTested via syzkaller","published":"2025-09-17T14:56:37.024Z","updated":"2026-10-28T02:31:08.813682163Z","reserved":"2025-09-16T16:08:59.566Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"3fa0f1e0e31b1b73cdf59d4c36c7242e6ef821be","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"618b15d09fed6126356101543451d49860db4388","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"78bc7f0ab99458221224d3ab97199c0f8e6861f1","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"ab2a55907823f0bca56b6d03ea05e4071ba8535f","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"bf70e0eab64c625da84d9fdf4e84466b79418920","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"c11dbc7705b3739974ac31a13f4ab81e61a5fb07","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"2e6ad51c709fa794e0ce26003c9c9cd944e3383a","status":"affected","versionType":"git"},{"version":"6f3b911d5f29b98752e5da86a295210c0c4f4e14","lessThan":"2b4c99f7d9a57ecd644eda9b1fb0a1072414959f","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"4.14.312","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.280","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.240","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.177","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.106","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.23","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2.10","lessThanOrEqual":"6.2.*","status":"unaffected","versionType":"semver"},{"version":"6.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-908"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3fa0f1e0e31b1b73cdf59d4c36c7242e6ef821be","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/618b15d09fed6126356101543451d49860db4388","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/78bc7f0ab99458221224d3ab97199c0f8e6861f1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ab2a55907823f0bca56b6d03ea05e4071ba8535f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bf70e0eab64c625da84d9fdf4e84466b79418920","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c11dbc7705b3739974ac31a13f4ab81e61a5fb07","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2e6ad51c709fa794e0ce26003c9c9cd944e3383a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2b4c99f7d9a57ecd644eda9b1fb0a1072414959f","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53344.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53344","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":"partial"},"epss":0.00211,"epssPercentile":0.11408,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-53344","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53344","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-53344","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-53344","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}