Incorrect authorization in linux-pam - CVE-2022-28321

 

Incorrect authorization in linux-pam - CVE-2022-28321

Published: January 25, 2023 / Updated: May 26, 2023


Vulnerability identifier: #VU71525
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-28321
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass authorization process.

The vulnerability exists due to an error within the pam_access.so module in Linux-PAM package, which does not correctly restrict login if a user tries to connect from an IP address that is not resolvable via DNS.  A remote attacker can bypass authorization process and login to the system via SSH from IP addresses that were not allowed to connect from.


Affected software

linux-pam
cflinuxfs3
Platform Automation Toolkit
Ubuntu
libpam-modules (Ubuntu package)

How to mitigate CVE-2022-28321

Install updates from vendor's website.

linux-pam - update to 1.5.2
libpam-modules (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1.1.8-3.6ubuntu2.18.04.4, 1.1.8-3.6ubuntu2.18.04.6, 1.3.1-5ubuntu4.4, 1.3.1-5ubuntu4.6, 1.4.0-11ubuntu2.1, 1.4.0-11ubuntu2.3, 1.5.2-2ubuntu1.1, 1.5.2-2ubuntu1.3
cflinuxfs3 - update to 0.351.0
Platform Automation Toolkit - addressed in versions 4.4.31, 5.0.24, 5.1.0

External References

Related Security Bulletins