| Name | CVE-2026-15779 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| samba (PTS) | bookworm, bookworm (security) | 2:4.17.12+dfsg-0+deb12u4 | vulnerable |
| trixie | 2:4.22.11+dfsg-0+deb13u1 | fixed | |
| trixie (security) | 2:4.22.10+dfsg-0+deb13u2 | fixed | |
| forky, sid | 2:4.25.2+dfsg-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| samba | source | trixie | 2:4.22.10+dfsg-0+deb13u1 | |||
| samba | source | (unstable) | 2:4.24.2+dfsg-1 |
[bookworm] - samba <postponed> (Minor issue; pam_winbind mkhomedir chowns a pre-existing home dir, and mkhomedir is not enabled by default in Debian; can be fixed in next update)
[bullseye] - samba <postponed> (Minor issue; pam_winbind mkhomedir chowns a pre-existing home dir, and mkhomedir is not enabled by default in Debian; can be fixed in next update)
https://bugzilla.redhat.com/show_bug.cgi?id=2499991
Marking versions as fixed (without _pam_chown_homedir), but might be fixed earlier:
https://bugzilla.samba.org/show_bug.cgi?id=16073
https://git.samba.org/samba.git/?p=samba.git;a=commit;h=4b8ec478215551f5aa84d8a6f61ceea78c3ca21e (samba-4.24.4)
https://git.samba.org/samba.git/?p=samba.git;a=commit;h=7e0bdc05237cdf10e5ee22aa884af8337a53607e (samba-4.22.10)