{"id":"CVE-2025-39838","aliases":["CVE-2025-39838"],"related":[],"kind":"vulnerability","state":"published","title":"cifs: prevent NULL pointer dereference in UTF16 conversion","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: prevent NULL pointer dereference in UTF16 conversion\n\nThere can be a NULL pointer dereference bug here. NULL is passed to\n__cifs_sfu_make_node without checks, which passes it unchecked to\ncifs_strndup_to_utf16, which in turn passes it to\ncifs_local_to_utf16_bytes where '*from' is dereferenced, causing a crash.\n\nThis patch adds a check for NULL 'src' in cifs_strndup_to_utf16 and\nreturns NULL early to prevent dereferencing NULL pointer.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: prevent NULL pointer dereference in UTF16 conversion\n\nThere can be a NULL pointer dereference bug here. NULL is passed to\n__cifs_sfu_make_node without checks, which passes it unchecked to\ncifs_strndup_to_utf16, which in turn passes it to\ncifs_local_to_utf16_bytes where '*from' is dereferenced, causing a crash.\n\nThis patch adds a check for NULL 'src' in cifs_strndup_to_utf16 and\nreturns NULL early to prevent dereferencing NULL pointer.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncifs: prevenir la desreferencia de puntero NULL en la conversión UTF16\n\nPuede haber un error de desreferencia de puntero NULL aquí. Se pasa NULL a __cifs_sfu_make_node sin comprobaciones, que lo pasa sin comprobar a cifs_strndup_to_utf16, que a su vez lo pasa a cifs_local_to_utf16_bytes donde se desreferencia '*from', causando un fallo.\n\nEste parche añade una comprobación para NULL 'src' en cifs_strndup_to_utf16 y devuelve NULL anticipadamente para prevenir la desreferencia del puntero NULL.\n\nEncontrado por Linux Verification Center (linuxtesting.org) con SVACE","source":"nvd"}],"published":"2025-09-19T15:26:13.506Z","modified":"2026-11-05T22:17:33.577Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"41d3f256c6a5e41eb32b87168399c0facd512dc0","fixed":"1f797f062b5cf13a1c2bcc23285361baaa7c9260","status":"affected"},{"type":"git","introduced":"41d3f256c6a5e41eb32b87168399c0facd512dc0","fixed":"3c26a8d30ed6b53a52a023ec537dc50a6d34a67a","status":"affected"},{"type":"git","introduced":"41d3f256c6a5e41eb32b87168399c0facd512dc0","fixed":"70bccd9855dae56942f2b18a08ba137bb54093a0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.6","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.16.6"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1f797f062b5cf13a1c2bcc23285361baaa7c9260","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c26a8d30ed6b53a52a023ec537dc50a6d34a67a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70bccd9855dae56942f2b18a08ba137bb54093a0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:12:29.483Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39838","url":"https://www.cve.org/CVERecord?id=CVE-2025-39838","licence":"CVE Terms of Use","modified":"2026-11-05T21:12:59.903Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39838","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39838","licence":"Public domain","modified":"2026-11-05T22:17:33.577Z"}],"updatedAt":"2026-11-25T22:59:04.859Z","epss":{"score":0.00167,"percentile":0.06296,"date":"2026-12-01T12:00:22.000Z"}}