You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have two checks before accessing the array buffer by index in the function attmap_get_value. And they are false because const char *attmap_passwd_gecos = "\"${gecos:-$cn}\"". This is the variable attr.
There may be buffer underflow:
nss-pam-ldapd/nslcd/passwd.c
Line 544 in 9a353ac
We have two checks before accessing the array
buffer
by index in the functionattmap_get_value
. And they are false becauseconst char *attmap_passwd_gecos = "\"${gecos:-$cn}\""
. This is the variableattr
.nss-pam-ldapd/nslcd/attmap.c
Line 272 in 9a353ac
nss-pam-ldapd/nslcd/attmap.c
Lines 289 to 290 in 9a353ac
But after that we try to access the array by index -1:
nss-pam-ldapd/nslcd/attmap.c
Line 297 in 9a353ac
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Voronin.
The text was updated successfully, but these errors were encountered: