Bug 2496963

Summary: Fedora 44 cifs-utils 7.6 regression: Kerberos CIFS mounts fail because cifs.upcall selects root’s KCM:0 cache instead of the requesting user’s valid KCM cache.
Product: [Fedora] Fedora Reporter: un4gvnbb2000
Component: cifs-utilsAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: abokovoy, luk.claes, paalcant, pfilipen, ssorce
Target Milestone: ---Keywords: Regression, Upgrades
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cifs-utils-7.6-2.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-06 22:00:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description un4gvnbb2000 2026-07-03 21:08:47 UTC
After upgrading Fedora 44 from cifs-utils 7.5-1.fc44 to cifs-utils 7.6-1.fc44, CIFS mounts using sec=krb5 fail with:

    mount error(126): Required key not available
    CIFS: VFS: failed to create a new SMB session with Kerberos: -126

The system is joined to an Active Directory domain and uses SSSD KCM credential caching.

The user has a valid Kerberos TGT and valid CIFS service tickets for the file server. However, cifs.upcall appears to fall back to root's KCM cache, KCM:0, instead of using the requesting user's KCM credential cache.

Downgrading cifs-utils and cifs-utils-info from 7.6-1.fc44 back to 7.5-1.fc44 immediately restores working CIFS Kerberos mounts.

Kernel rollback did not resolve the issue, so the regression appears tied to cifs-utils 7.6 rather than the kernel.

Reproducible: Always

Steps to Reproduce:
1. Use Fedora 44 joined to an Active Directory domain with SSSD KCM credential caching enabled.

2. Configure a CIFS mount using Kerberos authentication, similar to:

       //fileserver.example.test/share /mnt/share cifs sec=krb5,multiuser,noperm,vers=3.0,cruid=<user_uid>,_netdev,nofail,x-systemd.automount 0 0

3. Confirm the user has a valid Kerberos ticket:

       klist

4. Confirm CIFS service tickets can be obtained:

       kvno cifs/fileserver.example.test
       kvno cifs/fileserver

5. Upgrade to:

       cifs-utils-7.6-1.fc44
       cifs-utils-info-7.6-1.fc44

6. Attempt to mount the share:

       sudo mount -a

7. Enable cifs.upcall debug logging and observe the credential cache selected by cifs.upcall.
Actual Results:
The CIFS mount fails with:

    mount error(126): Required key not available
    CIFS: VFS: failed to create a new SMB session with Kerberos: -126

Debug logging shows cifs.upcall receives the correct uid/creduid for the requesting user and can see the user's KCM cache, but then uses root's default KCM cache instead:

    get_cachename_from_process_env: cachename = KCM:<user_uid>:<collection_id>
    get_existing_cc: default ccache is KCM:0
    Credentials cache 'KCM:0' not found
    valid TGT is not present in credential cache
    Unable to obtain service ticket

Downgrading back to cifs-utils-7.5-1.fc44 fixes the issue immediately.

Expected Results:
cifs.upcall should use the Kerberos credential cache associated with the requesting user's uid/creduid, or otherwise honor the user KCM cache it discovers, rather than falling back to root's KCM:0 cache.

The CIFS mount should succeed when the requesting user has a valid TGT and valid CIFS service ticket.

Additional Information:
Environment:

    Fedora 44 x86_64
    Broken package: cifs-utils-7.6-1.fc44
    Working package: cifs-utils-7.5-1.fc44
    Credential cache type: SSSD KCM
    Authentication: Active Directory Kerberos
    Mount type: CIFS with sec=krb5

Request-key rule:

    create  cifs.spnego    * * /usr/bin/cifs.upcall %k

Relevant krb5 cache configuration:

    default_ccache_name = KCM:

Workaround:

    sudo dnf downgrade cifs-utils cifs-utils-info

After downgrading from 7.6-1.fc44 to 7.5-1.fc44, the same mount succeeds without changing the mount configuration, Kerberos tickets, server, SPN, or kernel.

Diagnotic logs are available, did not see a way to submit them here.

The issue is reproducible on my current system after upgrading to cifs-utils 7.6-1.fc44.

I cannot state whether it affected every Fedora 44 installation because I only have one test system.

This same system successfully mounted the share with cifs-utils 7.5-1.fc44 and began failing immediately after upgrading to 7.6-1.fc44. Downgrading back to 7.5-1.fc44 immediately restores correct behavior.

Confirmed with A/B/A test:

cifs-utils-7.5-1.fc44: CIFS Kerberos mount works.
Upgrade to cifs-utils-7.6-1.fc44: same mount fails with error 126 / Required key not available.
Downgrade back to cifs-utils-7.5-1.fc44: same mount works again.

No mount configuration, Kerberos ticket, server, SPN, or kernel change was required between tests.

Comment 1 Fedora Update System 2026-07-06 21:58:07 UTC
FEDORA-2026-90dbff48ca (cifs-utils-7.6-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-90dbff48ca

Comment 2 Fedora Update System 2026-07-06 22:00:42 UTC
FEDORA-2026-90dbff48ca (cifs-utils-7.6-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.