Linux
ksmbd: fix type confusion via race condition when using ipc_msg_send_request
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix type confusion via race condition when using ipc_msg_send_request req->handle is allocated using ksmbd_acquire_id(&ipc_ida), based on ida_alloc. req->handle from ksmbd_ipc_login_request and FSCTL_PIPE_TRANSCEIVE ioctl can be same and it could lead to type confusion between messages, resulting in access to unexpected parts of memory after an incorrect delivery. ksmbd check type of ipc response but missing add continue to check next ipc reponse.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6321bbda4244b93802d61cfe0887883aae322f4b
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 76861630b29e51373e73e7b00ad0d467b6941162
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2
Fixed in 6321bbda4244b93802d61cfe0887883aae322f4b, 76861630b29e51373e73e7b00ad0d467b6941162, 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea, 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76, e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2
- 5.15
Fixed in 0, 6.1.131, 6.6.83, 6.12.19, 6.13.7, 6.14
Mitigation
Upgrade Linux to 6321bbda4244b93802d61cfe0887883aae322f4b or 76861630b29e51373e73e7b00ad0d467b6941162 or 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea or 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76 or e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2 or later.
Upgrade Linux to 0 or 6.1.131 or 6.6.83 or 6.12.19 or 6.13.7 or 6.14 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.