-
Nicolas Iooss authored
gnome-keyring PAM module saves the password of the user in a blob associated with a PAM handle, using pam_set_data (ph, "gkr_system_authtok"...) in stash_password_for_session. This data is kept in the process memory once the PAM session is opened, which allows root user to read it, for example using gcore. This password leakage has recently been instrumented with tools such as mimipenguin (https://github.com/huntergregal/mimipenguin and https://github.com/n1nj4sec/mimipy). Fix this leak by destroying the data blob which hold the password once it has been used in pam_sm_open_session. https://bugzilla.gnome.org/show_bug.cgi?id=781486
9db67ef6