Public bug reported:

PowerShell's `ConstrainedLanguage` mode is a Windows security boundary
enforced by Windows Defender Application Control (WDAC) or AppLocker. It
severely restricts access to .NET types, Win32 APIs, and COM objects.

Under `ConstrainedLanguage` mode, PowerShell prevents execution of
unapproved scripts, restricts non-language .NET types/Win32 APIs/COM
objects, and treats UNC network paths as untrusted. Console APIs are
part of the constrained group, so an apparently harmless encoding change
is blocked, PowerShell throws an exception and the distro instance
initialization fails. We've seen this exact symptom within locked down
corporate environments.

That's just one example. Who knows for which other reasons the encoding
adjustment may throw.

Fixes for this particular failure mode is coming in version 0.6.5 of
this package.

References:

    https://devblogs.microsoft.com/powershell/powershell-constrained-
language-mode/

** Affects: wsl-setup (Ubuntu)
     Importance: Medium
     Assignee: Carlos Nihelton (cnihelton)
         Status: In Progress

** Changed in: wsl-setup (Ubuntu)
       Status: New => In Progress

** Changed in: wsl-setup (Ubuntu)
   Importance: Undecided => Medium

** Changed in: wsl-setup (Ubuntu)
     Assignee: (unassigned) => Carlos Nihelton (cnihelton)

** Changed in: wsl-setup (Ubuntu)
    Milestone: None => ubuntu-27.04

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174602

Title:
  PowerShell encoding manipulation may throw and break first boot
  experience

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wsl-setup/+bug/2174602/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to