CVE-2025-10230Samba: command injection in wins server hook script
A flaw was found in Samba, in the front-end WINS hook handling: NetBIOS names from registration packets are passed to a shell without proper validation or escaping. Unsanitized NetBIOS name data from WINS registration packets are inserted into a shell command and executed by the Samba Active Directory Domain Controller’s wins hook, allowing an unauthenticated network attacker to achieve remote command execution as the Samba process.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | samba | Fixed | 2:4.22.3+dfsg-4ubuntu2.1 | UBUNTU-CVE-2025-10230 |
| Ubuntu 24.04 | samba | Fixed | 2:4.19.5+dfsg-4ubuntu9.4 | UBUNTU-CVE-2025-10230 |
| Ubuntu 22.04 | samba | Fixed | 2:4.15.13+dfsg-0ubuntu1.10 | UBUNTU-CVE-2025-10230 |
| Ubuntu 20.04 | samba | Fix pending | 2:4.15.13+dfsg-0ubuntu0.20.04.8+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-10230 |
| Ubuntu 18.04 | samba | Fix pending | 2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-10230 |
| Ubuntu 16.04 | samba | Fix pending | 2:4.3.11+dfsg-0ubuntu0.16.04.34+esm4 (Ubuntu Pro) | UBUNTU-CVE-2025-10230 |
| Ubuntu 14.04 | samba | Fix pending | 2:4.3.11+dfsg-0ubuntu0.14.04.20+esm15 (Ubuntu Pro) | UBUNTU-CVE-2025-10230 |
| Debian 14 | samba | Fixed | 2:4.23.2+dfsg-1 | DEBIAN-CVE-2025-10230 |
| Debian 13 | samba | Fixed | 2:4.22.6+dfsg-0+deb13u1 | DEBIAN-CVE-2025-10230 |
| Debian 12 | samba | Fixed | 2:4.17.12+dfsg-0+deb12u3 | DEBIAN-CVE-2025-10230 |
| Red Hat Enterprise Linux 10 | ldb-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | libldb | Not affected | ||
| Red Hat Enterprise Linux 10 | libldb-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 10 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 10 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 10 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ldb | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 10 | samba | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-gpupdate | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 9 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 9 | ldb-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ldb | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-gpupdate | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-vfs-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-domainjoin-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4 | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-pidl | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-python | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-test | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-krb5-locator | Not affected | ||
| Alpine Linux 3.24 | samba | Fixed | 4.21.9-r0 | ALPINE-CVE-2025-10230 |
| Alpine Linux 3.23 | samba | Fixed | 4.21.9-r0 | ALPINE-CVE-2025-10230 |
| Alpine Linux 3.22 | samba | Fixed | 4.21.9-r0 | ALPINE-CVE-2025-10230 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- samba: affected: before 4.21.9, 4.22.0 to before 4.21.5, 4.23.0 to before 4.23.2; fixed in
4.21.9,4.21.5,4.23.2 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Workaround: No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
References
- https://access.redhat.com/security/cve/CVE-2025-10230
- https://bugzilla.redhat.com/show_bug.cgi?id=2394377
- https://www.samba.org/samba/history/security.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.