| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-50119: cifs: fix warning when destroy 'cifs_io_request_pool' |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| cifs: fix warning when destroy 'cifs_io_request_pool' |
| |
| There's a issue as follows: |
| WARNING: CPU: 1 PID: 27826 at mm/slub.c:4698 free_large_kmalloc+0xac/0xe0 |
| RIP: 0010:free_large_kmalloc+0xac/0xe0 |
| Call Trace: |
| <TASK> |
| ? __warn+0xea/0x330 |
| mempool_destroy+0x13f/0x1d0 |
| init_cifs+0xa50/0xff0 [cifs] |
| do_one_initcall+0xdc/0x550 |
| do_init_module+0x22d/0x6b0 |
| load_module+0x4e96/0x5ff0 |
| init_module_from_file+0xcd/0x130 |
| idempotent_init_module+0x330/0x620 |
| __x64_sys_finit_module+0xb3/0x110 |
| do_syscall_64+0xc1/0x1d0 |
| entry_SYSCALL_64_after_hwframe+0x77/0x7f |
| |
| Obviously, 'cifs_io_request_pool' is not created by mempool_create(). |
| So just use mempool_exit() to revert 'cifs_io_request_pool'. |
| |
| The Linux kernel CVE team has assigned CVE-2024-50119 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.10 with commit edea94a69730b74a8867bbafe742c3fc4e580722 and fixed in 6.11.6 with commit 726416a253c51037636ecc65ad3dada3d02dcaea |
| Issue introduced in 6.10 with commit edea94a69730b74a8867bbafe742c3fc4e580722 and fixed in 6.12 with commit 2ce1007f42b8a6a0814386cb056feb28dc6d6091 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-50119 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| fs/smb/client/cifsfs.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/726416a253c51037636ecc65ad3dada3d02dcaea |
| https://git.kernel.org/stable/c/2ce1007f42b8a6a0814386cb056feb28dc6d6091 |