FreeBSD jail, xen, and .pam_login_access security fixes released

FreeBSD jail, xen, and .pam_login_access security fixes released

FreeBSD jail, xen, and .pam_login_access security fixes released
All supported versions of FreeBSD are affected by various security bugs that need to be applied ASAP. If the process is privileged, it may escape jail and gain full access to the FreeBSD system. Similarly, when using Xen, a malicious or buggy frontend driver may be able to cause resource leaks. Let us see what and how to fix these security vulnerabilities on FreeBSD.

FreeBSD version 10/11/12 and 13 have a new jail, Xen, and .pam_login_access security-related problems. The excellent news is fixed are released. Let us see the details.
Find FreeBSD Version and Patch Level Number

Run:
$ uname -mrs
$ freebsd-version

12.2-RELEASE-p3

Apply FreeBSD jail, xen, and .pam_login_access security fixes

If your systems running a RELEASE version of FreeBSD, type:
$ sudo freebsd-update fetch
Session:

Password:
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 17 patches.....10... done.
Applying patches... done.
Fetching 1 files... done.
The following files will be removed as part of updating to
12.2-RELEASE-p4:
/etc/ssl/certs/2c543cd1.0
/etc/ssl/certs/2e4eed3c.0
/etc/ssl/certs/480720ec.0
/etc/ssl/certs/7d0b38bd.0
.....
..
....
/usr/share/man/man2/jail.2.gz
/usr/share/man/man2/jail_attach.2.gz
/usr/share/man/man2/jail_get.2.gz
/usr/share/man/man2/jail_remove.2.gz
/usr/share/man/man2/jail_set.2.gz

Reboot the FreeBSD box, run:
$ sudo reboot
OR
$ sudo shutdown -r +30min "Rebooting FreeBSD production box for a security update. Please save all work."

Verification

After reboot verify FreeBSD version:
$ feebsd-verion
Sample outputs from patched systems:

12.2-RELEASE-p4

See how to applying security updates using pkg/freebsd-update on FreeBSD for more information.

Summing up

Fixing these bugs and security issues under FreeBSD is essential. I patched all my FreeBSD 12.x boxes. For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit the FreeBSD website.

Posted by Contributor