Makar Semyonov
70bccd9855
cifs: prevent NULL pointer dereference in UTF16 conversion
...
There can be a NULL pointer dereference bug here. NULL is passed to
__cifs_sfu_make_node without checks, which passes it unchecked to
cifs_strndup_to_utf16, which in turn passes it to
cifs_local_to_utf16_bytes where '*from' is dereferenced, causing a crash.
This patch adds a check for NULL 'src' in cifs_strndup_to_utf16 and
returns NULL early to prevent dereferencing NULL pointer.
Found by Linux Verification Center (linuxtesting.org) with SVACE
Signed-off-by: Makar Semyonov <m.semenov@tssltd.ru >
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com >
2025-09-04 11:43:31 -05:00
..
2024-10-02 17:23:23 -04:00
2025-01-31 12:51:44 -06:00
2025-07-27 16:59:59 -05:00
2025-07-31 09:42:54 -05:00
2025-09-02 20:38:00 -05:00
2025-03-31 21:12:31 -05:00
2025-06-21 11:03:25 -05:00
2025-08-11 23:20:26 -05:00
2025-09-04 11:43:31 -05:00
2023-08-30 08:55:52 -05:00
2025-03-26 14:51:14 -05:00
2024-10-02 17:52:24 -05:00
2025-07-27 16:59:59 -05:00
2025-08-25 09:40:38 -05:00
2025-08-13 11:36:20 -05:00
2025-08-13 11:36:05 -05:00
2025-06-01 20:43:49 -05:00
2025-08-06 12:01:54 -05:00
2025-08-04 19:29:14 -05:00
2025-08-13 11:36:05 -05:00
2025-08-11 23:20:07 -05:00
2024-09-15 10:42:45 -05:00
2025-08-13 11:36:24 -05:00
2025-02-05 21:09:07 -06:00
2023-08-20 16:05:50 -05:00
2025-02-05 21:09:00 -06:00
2025-02-05 21:09:07 -06:00
2025-07-13 17:16:29 -05:00
2025-01-19 19:34:00 -06:00
2025-01-19 19:34:00 -06:00
2023-10-28 16:15:15 +02:00
2025-07-28 13:43:25 -07:00
2025-08-04 19:29:10 -05:00
2025-08-01 00:16:19 -05:00
2024-05-01 18:08:21 +01:00
2024-05-01 18:08:21 +01:00
2025-08-10 12:39:51 -05:00
2025-06-21 11:03:25 -05:00
2024-12-19 09:24:35 -06:00
2025-08-04 19:29:14 -05:00
2025-08-06 12:01:54 -05:00
2025-06-30 14:44:44 -05:00
2025-06-03 16:04:29 -07:00
2025-01-29 16:52:25 -06:00
2025-01-26 23:12:03 -06:00
2025-01-26 23:12:03 -06:00
2023-10-22 19:03:42 -05:00
2025-06-29 16:16:29 -05:00
2025-09-02 20:37:17 -05:00
2025-07-27 17:43:08 -05:00
2025-01-19 19:34:00 -06:00
2025-07-27 16:59:58 -05:00
2025-09-02 20:37:17 -05:00
2025-04-01 04:58:09 -05:00
2025-04-01 04:58:05 -05:00
2025-08-27 14:59:06 -05:00
2025-01-29 16:52:25 -06:00
2025-09-02 20:37:44 -05:00
2025-08-19 11:16:14 -05:00
2025-09-02 20:37:44 -05:00
2025-01-19 19:34:00 -06:00
2025-07-27 17:43:08 -05:00
2025-08-13 11:36:05 -05:00
2025-08-13 11:36:12 -05:00
2025-08-07 12:40:11 -05:00
2024-01-23 12:41:02 -06:00
2025-09-02 20:37:44 -05:00
2025-08-13 11:36:05 -05:00
2025-04-01 01:54:17 -05:00