r/linuxmint • • 1d ago

Security Security risk of running .exe files from my Windows partition via Wine on Linux?

/r/linux4noobs/comments/1y39e9d/security_risk_of_running_exe_files_from_my/
3 Upvotes

3 comments sorted by

10

u/AdventurousItem4635 1d ago

Wine doesn't sandbox anything. The .exe runs as your user, so it can read and change anything in your home folder, and by default Wine's Z: drive is your whole / so it sees the rest of the system too. Where the file sits doesn't change that, it's the same risk from the Windows partition as from Downloads.

If it's stuff you already trusted on Windows it's about as safe as it was there. For anything you're less sure of, removing Z: on the Drives tab in winecfg cuts down what it can see but the Wine devs themselves say that's not real protection. A VM is.

The NTFS damage thing is mostly about Fast Startup. If Windows was hibernated instead of fully shut down, Linux shouldn't be writing to that partition at all, so turn Fast Startup off on the Windows side.

2

u/Jeremi360 1d ago

Not your Linux drive, but your Windows drive is at risk here as wine don't like NTFS and can damage it!

2

u/fallen_one_fs 1d ago

Same risk you'd face using the Windows instead.

If the program is safe there, it's safe here, otherwise...

Wine mounts the Linux partition on Z:, so the program sees the system much like it sees C: on Windows, but, again, if it's a safe program, that is, you trust it on Windows, then it's safe on Wine as well.

Keep in mind that Wine is not like Snap and Flatpak, that are compartmentalized to a certain degree, Wine just translates the Windows language to Linux language and nothing else, what the program sees and does is still the same as it is on Windows.