Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: Identify a Nap

      September 23, 2025

      Ambient Animations In Web Design: Principles And Implementation (Part 1)

      September 23, 2025

      Benchmarking AI-assisted developers (and their tools) for superior AI governance

      September 23, 2025

      Digital.ai launches White-box Cryptography Agent to enable stronger application security

      September 23, 2025

      Development Release: MX Linux 25 Beta 1

      September 22, 2025

      DistroWatch Weekly, Issue 1140

      September 21, 2025

      Distribution Release: DietPi 9.17

      September 21, 2025

      Development Release: Zorin OS 18 Beta

      September 19, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Stop using .reverse().find(): meet findLast()

      September 23, 2025
      Recent

      Stop using .reverse().find(): meet findLast()

      September 23, 2025

      @ts-ignore is almost always the worst option

      September 22, 2025

      MutativeJS v1.3.0 is out with massive performance gains

      September 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      How I Configure Polybar to Customize My Linux Desktop

      September 23, 2025
      Recent

      How I Configure Polybar to Customize My Linux Desktop

      September 23, 2025

      Development Release: MX Linux 25 Beta 1

      September 22, 2025

      DistroWatch Weekly, Issue 1140

      September 21, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Linux»Ubuntu 25.10: Il Futuro di sudo è in Rust con sudo-rs

    Ubuntu 25.10: Il Futuro di sudo è in Rust con sudo-rs

    May 8, 2025
    Ubuntu 25.10: Il Futuro di sudo è in Rust con sudo-rs

    Ubuntu 25.10, nome in codice “Questing Quokka”, rappresenta una pietra miliare nella storia delle distribuzioni GNU/Linux: sarà la prima a utilizzare di default sudo-rs, una re-implementazione del celebre comando sudo scritta in Rust, linguaggio noto per la sua sicurezza nella gestione della memoria e per la robustezza del codice. L’annuncio ufficiale di Canonical segna un deciso passo avanti verso un’infrastruttura di sistema più sicura e moderna.

    Il comando sudo (Super User DO) è uno degli strumenti fondamentali delle distribuzioni GNU/Linux, consentendo agli utenti di eseguire comandi con privilegi amministrativi in modo controllato. Storicamente, sudo è stato sviluppato in linguaggio C, che, pur offrendo grande flessibilità, espone a rischi legati alla sicurezza della memoria, come buffer overflow e de-referenziazione di puntatori nulli. Queste vulnerabilità rappresentano una minaccia significativa, soprattutto per strumenti che gestiscono l’escalation dei privilegi.

    Rust è un linguaggio di programmazione moderno progettato per prevenire errori comuni nella gestione della memoria già in fase di compilazione. Grazie a queste caratteristiche, Rust è diventato la scelta privilegiata per la riscrittura di componenti di sistema critici, riducendo drasticamente il rischio di vulnerabilità legate alla memoria.

    sudo-rs: Cos’è e Perché è Importante

    sudo-rs è una re-implementazione di sudo sviluppata dalla Trifecta Tech Foundation (TTF), nell’ambito dell’iniziativa Privilege Boundary, che mira a rafforzare i componenti responsabili dell’escalation dei privilegi adottando alternative sicure dal punto di vista della memoria. Todd Miller, storico manutentore di sudo, collabora direttamente con il team di sudo-rs per garantire compatibilità e continuità.

    Per la maggior parte degli utenti, il passaggio a sudo-rs sarà trasparente: i file di configurazione, il comportamento da riga di comando e i flussi di lavoro esistenti rimarranno invariati. Tuttavia, il team di sviluppo ha scelto un approccio “less is more”, evitando di re-implementare funzionalità obsolete o poco utilizzate, concentrandosi invece sulle funzioni principali e sulla sicurezza.

    Novità in Ubuntu 25.10

    Ubuntu 25.10 introduce sudo-rs come implementazione predefinita di sudo, segnando un cambiamento epocale nella gestione dell’escalation dei privilegi nelle distribuzioni GNU/Linux. Questo passaggio offre:

    • Maggiore sicurezza: grazie alle garanzie offerte da Rust, molte delle vulnerabilità storiche legate alla gestione della memoria vengono eliminate alla radice.
    • Compatibilità: sudo-rs è progettato per essere un sostituto diretto di sudo, senza richiedere modifiche alle configurazioni o ai flussi di lavoro esistenti.
    • Sostenibilità a lungo termine: il codice scritto in Rust è più facile da mantenere e meno soggetto a errori critici.
    • Collaborazione tra generazioni: la stretta collaborazione tra il team di sudo-rs e Todd Miller assicura che l’esperienza e la compatibilità siano preservate.

    Per chi avesse dubbi sulla disponibilità del vecchio sudo, Canonical ha confermato che il pacchetto originale sarà ancora presente non solo in Ubuntu 25.10, ma anche nella futura Ubuntu 26.04 LTS e probabilmente per alcune versioni successive. Sarà possibile scegliere quale versione utilizzare grazie al sistema alternatives di Debian, un meccanismo che permette di gestire facilmente più programmi che svolgono la stessa funzione, assegnando a ciascuno un nome generico e consentendo all’amministratore di sistema di selezionare quale implementazione usare come predefinita tramite collegamenti simbolici gestiti dal comando update-alternatives. Tutta la procedura sarà documentata nel rilascio.

    Altre Innovazioni in Arrivo

    Canonical sta valutando anche la sostituzione di altri strumenti fondamentali, come coreutils (gli strumenti di base come ls, cp, mv), con alternative scritte in Rust tramite il progetto uutils coreutils. Verranno introdotti nuovi meta-pacchetti che permetteranno di passare facilmente tra le versioni GNU e Rust, o di tornare indietro in caso di necessità.

    Il linguaggio Rust sta conquistando sempre più terreno anche nel mondo GNU/Linux, sostituendo progressivamente parti critiche scritte in C grazie alla sua sicurezza nella gestione della memoria; questa crescita è così significativa che progetti come Redox OS, un sistema operativo interamente sviluppato in Rust, rappresenta ormai una futura concreta alternativa e una potenziale sfida per l’ecosistema GNU/Linux tradizionale.

    Scaricare Ubuntu 25.10

    Ubuntu 25.10 “Questing Quokka” è attualmente disponibile in versione di anteprima per sviluppatori, tester e appassionati che desiderano provare in anticipo le novità.

    Le immagini ISO possono essere scaricate dal sito ufficiale di Ubuntu, dove sono disponibili per PC a 64 bit (AMD64) e per ARM a 64 bit (ARMv8/AArch64).

    L’annuncio di rilascio e i dettagli sulle nuove funzionalità sono consultabili sul sito ufficiale e sul forum di Ubuntu.

    Fonte: https://discourse.ubuntu.com/t/adopting-sudo-rs-by-default-in-ubuntu-25-10/60583
    Fonte: https://trifectatech.org/initiatives/privilege-boundary/
    Fonte: https://www.phoronix.com/news/Ubuntu-25.10-sudo-rs-Default
    Fonte: https://linuxiac.com/ubuntu-25-10-will-default-to-rust-powered-sudo-rs/

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCVE-2025-37812 – Linux Kernel USB cdns3 NCM Gadget Deadlock
    Next Article Cisco IOS XE Wireless Controllers Vulnerability Enables Full Device Control for Attackers

    Related Posts

    Learning Resources

    How I Configure Polybar to Customize My Linux Desktop

    September 23, 2025
    News & Updates

    Development Release: MX Linux 25 Beta 1

    September 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    5 Best Payment Gateways for SaaS: Your Ultimate Guide

    Development

    CVE-2025-2932 – JKDEVKIT WordPress Arbitrary File Deletion Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-6951 – SAFECAM X300 FTP Service Default Credentials Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-6641 – PDF-XChange Editor U3D File Parsing Out-Of-Bounds Read Information Disclosure

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-38346 – Linux kernel ftrace UAF Vulnerability

    July 10, 2025

    CVE ID : CVE-2025-38346

    Published : July 10, 2025, 9:15 a.m. | 4 hours, 51 minutes ago

    Description : In the Linux kernel, the following vulnerability has been resolved:

    ftrace: Fix UAF when lookup kallsym after ftrace disabled

    The following issue happens with a buggy module:

    BUG: unable to handle page fault for address: ffffffffc05d0218
    PGD 1bd66f067 P4D 1bd66f067 PUD 1bd671067 PMD 101808067 PTE 0
    Oops: Oops: 0000 [#1] SMP KASAN PTI
    Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
    Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
    RIP: 0010:sized_strscpy+0x81/0x2f0
    RSP: 0018:ffff88812d76fa08 EFLAGS: 00010246
    RAX: 0000000000000000 RBX: ffffffffc0601010 RCX: dffffc0000000000
    RDX: 0000000000000038 RSI: dffffc0000000000 RDI: ffff88812608da2d
    RBP: 8080808080808080 R08: ffff88812608da2d R09: ffff88812608da68
    R10: ffff88812608d82d R11: ffff88812608d810 R12: 0000000000000038
    R13: ffff88812608da2d R14: ffffffffc05d0218 R15: fefefefefefefeff
    FS: 00007fef552de740(0000) GS:ffff8884251c7000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: ffffffffc05d0218 CR3: 00000001146f0000 CR4: 00000000000006f0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
    Call Trace:

    ftrace_mod_get_kallsym+0x1ac/0x590
    update_iter_mod+0x239/0x5b0
    s_next+0x5b/0xa0
    seq_read_iter+0x8c9/0x1070
    seq_read+0x249/0x3b0
    proc_reg_read+0x1b0/0x280
    vfs_read+0x17f/0x920
    ksys_read+0xf3/0x1c0
    do_syscall_64+0x5f/0x2e0
    entry_SYSCALL_64_after_hwframe+0x76/0x7e

    The above issue may happen as follows:
    (1) Add kprobe tracepoint;
    (2) insmod test.ko;
    (3) Module triggers ftrace disabled;
    (4) rmmod test.ko;
    (5) cat /proc/kallsyms; –> Will trigger UAF as test.ko already removed;
    ftrace_mod_get_kallsym()
    …
    strscpy(module_name, mod_map->mod->name, MODULE_NAME_LEN);
    …

    The problem is when a module triggers an issue with ftrace and
    sets ftrace_disable. The ftrace_disable is set when an anomaly is
    discovered and to prevent any more damage, ftrace stops all text
    modification. The issue that happened was that the ftrace_disable stops
    more than just the text modification.

    When a module is loaded, its init functions can also be traced. Because
    kallsyms deletes the init functions after a module has loaded, ftrace
    saves them when the module is loaded and function tracing is enabled. This
    allows the output of the function trace to show the init function names
    instead of just their raw memory addresses.

    When a module is removed, ftrace_release_mod() is called, and if
    ftrace_disable is set, it just returns without doing anything more. The
    problem here is that it leaves the mod_list still around and if kallsyms
    is called, it will call into this code and access the module memory that
    has already been freed as it will return:

    strscpy(module_name, mod_map->mod->name, MODULE_NAME_LEN);

    Where the “mod” no longer exists and triggers a UAF bug.

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Russia-Linked APT28 Exploited MDaemon Zero-Day to Hack Government Webmail Servers

    May 15, 2025

    Xbox Gear Store Offline: What’s Behind the Restructuring and Future Plans?

    August 7, 2025
    Phishing Up 175%: India’s New Cyber Report Flags BFSI Sector Vulnerabilities

    Phishing Up 175%: India’s New Cyber Report Flags BFSI Sector Vulnerabilities

    April 8, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.