You are not logged in.

#1 2021-01-28 17:44:43

ed_whpt4
Member
Registered: 2021-01-28
Posts: 5

sudo might need some update

Hi everyone,
Sudo before 1.9.5p2 has a Heap-based Buffer Overflow, allowing privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.
http://cve.mitre.org/cgi-bin/cvename.cg … -2021-3156
https://www.sudo.ws/stable.html#1.9.5p2

Offline

#2 2021-01-28 17:47:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: sudo might need some update

Since 1.9.5p2 has been in Core for two days now, what, exactly, do you think needs updated?

Last edited by Scimmia (2021-01-28 17:47:43)

Offline

#3 2021-01-28 17:55:03

ed_whpt4
Member
Registered: 2021-01-28
Posts: 5

Re: sudo might need some update

My pacman -Syu don't get the upgrade, I'm stuck with version 1.9.4p2.

Offline

#4 2021-01-28 17:55:55

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: sudo might need some update

Then fix your mirrors.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2021-01-28 17:58:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: sudo might need some update

1.9.5p1 was in core 8 days ago. If you're stuck on 1.9.4p2, your mirror is really, really out of date.

Offline

#6 2021-01-28 18:11:09

ed_whpt4
Member
Registered: 2021-01-28
Posts: 5

Re: sudo might need some update

Thank you. After adding the Worldwide mirrors  the things have been better. The mistake was to rely only on France mirrors.

Offline

#7 2021-01-28 18:23:57

icar
Member
Registered: 2020-07-31
Posts: 562

Re: sudo might need some update

@ed_whpt4 You can install and configure reflector [1] and enable its service file to keep your mirrors updated. There is also pacman-mirrorlist [2].

[1] https://archlinux.org/packages/community/any/reflector/
[2] https://archlinux.org/packages/core/any … irrorlist/

Offline

#8 2021-01-28 18:39:26

ed_whpt4
Member
Registered: 2021-01-28
Posts: 5

Re: sudo might need some update

pacman-mirrorlist was installed.

Offline

#9 2021-01-28 19:45:28

mpan
Member
Registered: 2012-08-01
Posts: 1,639
Website

Re: sudo might need some update

ed_whpt4 wrote:

Thank you. After adding the Worldwide mirrors  the things have been better. The mistake was to rely only on France mirrors.

It has nothing to do with geographical location of the mirrors. If they are outdated, they are outdated no matter where they are.

I am mentioning this in case you are inclined to use --country and --sort=country options of reflector. Unless you have data to prove that a server in a specific country is better for you than what reflector measurements have shown⁽¹⁾, I would suggest not even touching that option.

You may also wish to look at Arch security issues page: it will tell you when updates are available, even if your mirror still misses them. There is also a community/arch-audit package, which prints information about vulnerable packages on your system and updates to them.

ed_whpt4 wrote:

pacman-mirrorlist was installed.

It’s a dependency of pacman, so it indeed must be installed.

____
⁽¹⁾ They are a bit flawed WRT latency and TCP congestion control.

Last edited by mpan (2021-01-28 19:46:36)

Offline

#10 2021-01-28 20:36:45

ed_whpt4
Member
Registered: 2021-01-28
Posts: 5

Re: sudo might need some update

Thank you for the advice.
I have another archlinux on another partition. It has the same mirror list the first one used to have.
pacman -Syu says the system is up-to-date.
I commented the first mirror (http://archlinux.de-labrusse.fr/),  which happened to be, as stated by https://archlinux.org/mirrors/status/, out of sync.
The upgrade then proceeded correctly because the second mirror is synchronized.
This means pacman rely on the first mirror it can connect to. If it is normal behavior then the reflector package is of critical importance.

Offline

#11 2021-01-28 20:48:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,508
Website

Re: sudo might need some update

ed_whpt4 wrote:

If it is normal behavior then the reflector package is of critical importance.

That is normal - and well documented - behavior.  Reflector is a wonderful project, but it is most definitely not "critical".  It is critical that arch users maintain their system, including their mirrorlist.  Reflector is one very good way to do this.  There are many others.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2021-01-28 21:55:24

mpan
Member
Registered: 2012-08-01
Posts: 1,639
Website

Re: sudo might need some update

ed_whpt4: in addition to what Trilby has said: reflector is not a silver bullet either. The tool allows you to make a decision based on real (though imperfect) data, instead of relying on guesses based on intuition. But it can’t protect you from a mirror going stale. reflector will avoid such servers, but they can get out of sync later. It’s still your job as the administrator to detect the situation: for example by noticing lack of updates for a few days or missing critical updates — in particular if the official website claims the problem is already fixed.

Offline

Board footer

Powered by FluxBB