Has Ubuntu been patched against the KRACK attack? [duplicate]

A fix has been issued as per USN-3455-1 . You should update your system with sudo apt-get update && sudo apt-get upgrade. The relevant versions for currently supported releases:

  • Ubuntu 17.04:
    hostapd 2.4-0ubuntu9.1
    wpasupplicant 2.4-0ubuntu9.1
  • Ubuntu 16.04 LTS:
    hostapd 2.4-0ubuntu6.2
    wpasupplicant 2.4-0ubuntu6.2
  • Ubuntu 14.04 LTS:
    hostapd 2.1-0ubuntu1.5
    wpasupplicant 2.1-0ubuntu1.5

You should see an update of wpasupplicant during the update. More information about the attack is available on the GitHub page.