Most Linux firmware tools (flashrom, coreboot utilities, vendor‑reverse‑engineered scripts, NVMe tools) load the firmware into ram (assume it’s ECC), trust the RAM is correct, and write directly to SPI/EC/NVME. There’s no double-buffering, memory integrity checks, vendor-grade validation, protected memory regions, or automatic rollback.

If the buffer is corrupted, Linux flashes it anyway.

Windows OEM flashers never trust raw RAM blindly.

Because vendors don’t ship Linux flashers, users rely on flashrom, fwupd (reverse‑engineered metadata), Community EC flashers, Community NVMe firmware tools, and Coreboot scripts.

Reverse‑engineering = incomplete understanding = higher brick risk.

Windows uses official vendor tools with signed capsules, verified update paths, vendor QA, and recovery logic.

Linux gives userspace access to /dev/mem /dev/spidev I²C/SMBus EC registers and PCI config space which is terrible for safety.

Windows blocks almost all of this.

  • ArtworkBanned from community
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    5 months ago

    It’s not Linux, but your distribution, or you, what makes it “unsafe”.
    There are numerous options to harden your Linux environment, and it’s relatively trivial to keep it safer if you ever want it, or actually stop blaming and complaining.

    For example, to limit the access for root or custom group hwaccess, without much fuss but to give you an idea, for the most popular distros as Debian-based:

    1. Add a Udev rule:
    # /etc/udev/rules.d/90-hwaccess.rules
    
    KERNEL=="mem",        GROUP="hwaccess", MODE="0660"
    SUBSYSTEM=="spidev",  GROUP="hwaccess", MODE="0660"
    SUBSYSTEM=="i2c-dev", GROUP="hwaccess", MODE="0660"
    
    1. Set at boot:
    setfacl -Rm 'g:hwaccess:rwX' -- \
        /sys/kernel/debug/ec \
        /sys/bus/pci/devices/*/config;
    

    You may then setup SELinux, AppArmor, and secure it via SecureBoot’s shim, too.
    Yet, you chose to effortlessly complain instead…

    • madthumbsOPM
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      5
      ·
      5 months ago

      Changing permissions on /dev/mem or /sys/kernel/debug/ec does nothing to fix:

      • lack of signed capsules
      • lack of rollback
      • lack of vendor‑validated flashing logic
      • lack of double-buffering
      • lack of memory integrity checks
      • reverse‑engineered firmware formats
      • community-maintained EC/NVMe flashers

      Classic case of blaming the user instead of accepting blame.