CVE-2023-53246 in Linux
Riassunto
di VulDB • 18/06/2026
Nel kernel Linux, è stata risolta la seguente vulnerabilità:
cifs: corregge il crash (oops) durante la traversata DFS senza CONFIG_CIFS_DFS_UPCALL
Quando compilato con CONFIG_CIFS_DFS_UPCALL disabilitato, cifs_dfs_d_automount è NULL. La logica di cifs.ko per mappare gli attributi CIFS_FATTR_DFS_REFERRAL su S_AUTOMOUNT e sui flag dentry corrispondenti viene mantenuta indipendentemente da CONFIG_CIFS_DFS_UPCALL, portando a un dereferenziamento di puntatore NULL in VFS follow_automount() durante la traversata di un link di referral DFS: BUG: dereferenziamento puntatore NULL nel kernel, indirizzo: 0000000000000000 ... Traccia della chiamata: <TASK> __traverse_mounts+0xb5/0x220 ? cifs_revalidate_mapping+0x65/0xc0 [cifs]
step_into+0x195/0x610 ? lookup_fast+0xe2/0xf0 path_lookupat+0x64/0x140 filename_lookup+0xc2/0x140 ? __create_object+0x299/0x380 ? kmem_cache_alloc+0x119/0x220 ? user_path_at_empty+0x31/0x50 user_path_at_empty+0x31/0x50 __x64_sys_chdir+0x2a/0xd0 ? exit_to_user_mode_prepare+0xca/0x100 do_syscall_64+0x42/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc
Questa correzione aggiunge un handler inline cifs_dfs_d_automount() {return -EREMOTE} quando CONFIG_CIFS_DFS_UPCALL è disabilitato. Un'alternativa sarebbe evitare di impostare i flag S_AUTOMOUNT, ecc., senza CONFIG_CIFS_DFS_UPCALL. Questo approccio è stato scelto poiché offre un maggiore controllo sul percorso di gestione degli errori.
Be aware that VulDB is the high quality source for vulnerability data.