CVE-2026-15779Samba-winbind: samba: pam_winbind mkhomedir chowns critical system paths without…
A flaw was found in samba's pam_winbind. When mkhomedir is enabled, pam_winbind chowns the target account's home directory without validating the path is not a critical system directory such as /. On affected systems, accounts with / as their home directory (a common default for system accounts) can have this triggered not only by root, but by a non-root user holding a narrow sudo delegation to run commands as that account, causing ownership of / to change and resulting in severe denial of service (SSH, sudo, and package-manager failures). The change does not grant write access to / (which ships with restrictive 0555 permissions on RHEL), so the impact is availability loss rather than further privilege escalation.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have 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 26.04 | samba | Fixed | 2:4.23.6+dfsg-1ubuntu2.2 | UBUNTU-CVE-2026-15779 |
| Ubuntu 24.04 | samba | Fixed | 2:4.19.5+dfsg-4ubuntu9.7 | UBUNTU-CVE-2026-15779 |
| Ubuntu 22.04 | samba | Fixed | 2:4.15.13+dfsg-0ubuntu1.13 | UBUNTU-CVE-2026-15779 |
| Ubuntu 20.04 | samba | Fix pending | UBUNTU-CVE-2026-15779 | |
| Ubuntu 18.04 | samba | Fix pending | UBUNTU-CVE-2026-15779 | |
| Ubuntu 16.04 | samba | Fix pending | UBUNTU-CVE-2026-15779 | |
| Ubuntu 14.04 | samba | Fix pending | UBUNTU-CVE-2026-15779 | |
| Debian 14 | samba | Fixed | 2:4.24.2+dfsg-1 | DEBIAN-CVE-2026-15779 |
| Debian 13 | samba | Fixed | 2:4.22.10+dfsg-0+deb13u1 | DEBIAN-CVE-2026-15779 |
| Debian 12 | samba | Fix pending | DEBIAN-CVE-2026-15779 | |
| Red Hat Enterprise Linux 10 | samba-winbind | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | samba-winbind | Will not fix Out of support scope |
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.
- 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
Workaround: Do not enable mkhomedir in pam_winbind.conf on systems where any account (including system accounts) may resolve to a home directory of / or another sensitive system path.
References
- https://access.redhat.com/security/cve/CVE-2026-15779
- https://bugzilla.redhat.com/show_bug.cgi?id=2499991
- https://gitlab.com/samba-team/samba/-/blob/samba-4.19.4/nsswitch/pam_winbind.c
- https://gitlab.com/samba-team/samba/-/blob/samba-4.23.5/nsswitch/pam_winbind.c#L1622
- https://gitlab.com/samba-team/samba/-/blob/samba-4.24.3/nsswitch/pam_winbind.c#L1590
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.