libpam-google-authenticator, kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
google-authenticator (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in
apt-cache policy libpam-
libpam-
Installed: 20170702-1
Candidate: 20170702-1
Version table:
*** 20170702-1 500
500 http://
100 /var/lib/
3) What you expected to happen
Didn't expect a Kernel reboot, just an error message
4) What happened instead
server crashed
There is a bug that will cause a ubuntu to crash from bad configuration of libpam-
4.15.0-109-generic #110-Ubuntu SMP Tue Jun 23 02:39:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux.
kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
-- Reboot --
Steps to reproduce :
• sudo apt-get update
• sudo apt-get install libpam-
• vi /etc/pam.d/sshd
add below line without nullok
auth required pam_google_
Then restart ssh,
• sudo systemctl restart sshd.service
without initializing / running google-
• ssh -l user yourUbuntuServe
Work around is to add nullok to end of pam.d/sshd line
journalctl r.com systemd[1]: Stopping OpenBSD Secure Shell server... r.com sshd[1719]: Received signal 15; terminating. r.com systemd[1]: Stopped OpenBSD Secure Shell server. r.com systemd[1]: Starting OpenBSD Secure Shell server... r.com sshd[20393]: Server listening on 0.0.0.0 port 22. r.com sshd[20393]: Server listening on :: port 22. r.com systemd[1]: Started OpenBSD Secure Shell server. r.com kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000010 r.com kernel: microcode: microcode updated early to revision 0x5002f01, date = 2020-04-23
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:33:26 yourUbuntuServe
Jul 03 21:34:05 yourUbuntuServe
-- Reboot --
Jul 03 21:42:01 yourUbuntuServe