** Description changed:

  [Impact]
  
  When using an affected version of uaclient (any beta of v27) and using
  the `fix` command, the user could be shown a misleading message.
  Specifically, if the users machine has the system reboot required flag
  set, and then they use the `ua fix` command, uaclient will say that a
  reboot is required to complete the fix, even if that is not true.
  
  [Test case]
+ 
+ To reproduce:
+ 
+ 1. Launch a container: using focal here as an example
+     lxc launch ubuntu-daily:focal dev-f
+ 
+ 2. Add the uaclient staging ppa: 
https://launchpad.net/~ua-client/+archive/ubuntu/staging
+     add-apt-repository ppa:ua-client/staging
+     apt-get update
+ 
+ 3. Install version 27 beta 3
+     apt install ubuntu-advantage-tools=27.0~18.04.1~beta3
+ 
+ 4. Make sure you have the latest version of curl installed
+     apt install curl
+ 
+ 5. Touch the reboot-required file
+     sudo touch /var/run/reboot-required
+ 
+ 6. Attempt to fix https://ubuntu.com/security/notices/USN-4898-1
+     ua fix USN-4898-1
+ 
+ 7. See a message like this
  
  TODO
  
  [Where problems could occur]
  
  TODO
  
  [Discussion]
  
  TODO
  
  [Original Report]
  
  root@malefic:~# ua fix CVE-2021-3410
  CVE-2021-3410: libcaca vulnerability
  https://ubuntu.com/security/CVE-2021-3410
  1 affected package is installed: libcaca
  (1/1) libcaca:
  A fix is available in Ubuntu standard updates.
  The update is already installed.
  A reboot is required to complete fix operation.
  ✘ CVE-2021-3410 is not resolved.
  root@malefic:~#
  
  The line 'A reboot is required to complete fix operation.' may be
  partially true (i.e. a reboot is needed) for other reasons, but is not
  accurate in the context of this CVE.  Both 'checkrestart' and
  'needrestart' confirm that no running process is using the caca library.
  Looking at the code, it looks like it's looking at a global 'needs
  reboot' flag, unrelated to the specific fix operation.  I'd argue that
  a) it shouldn't say 'to complete fix operation' and b) it shouldn't
  claim 'CVE-2021-3410 is not resolved'.

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

Title:
  'ua fix' tells me to reboot with inaccurate message

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1926183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to