The --changelog argument to the rpm command will let you query installed packages to see the changelog. This will let you see which CVEs have had patches applied.
Code:
# rpm -q --changelog openssl
* Fri Mar 12 2010 Tomas Mraz <tmraz@redhat.com> 0.9.8e-12.6
- fix CVE-2009-3245 - add missing bn_wexpand return checks (#570924)
* Thu Mar 04 2010 Tomas Mraz <tmraz@redhat.com> 0.9.8e-12.5
- fix CVE-2010-0433 - do not pass NULL princ to krb5_kt_get_entry which
in the RHEL-5 and newer versions will crash in such case (#569774)
This can generate a very long list covering the entire history of the package, so you may want to pipe the output to a file then read the file using less:
Code:
# rpm -q --changelog openssl > openssl.changelog
# less openssl.changelog
Due to the way Red Hat manages version numbers (and CentOS follows), the version number is not always updated when a CVE is patched, so it is necessary to read the changelog to find proof that a patch was applied.
If you have a specific CVE number, as you do, you can use grep to check quickly to see if it is mentioned in the changelog:
Code:
# rpm -q --changelog openssh > openssh.changelog
# grep CVE-2006-5051 openssh.changelog
- CVE-2006-5051 - don't call cleanups from signal handler (#208459)
# grep CVE-2006-5052 openssh.changelog
- fix an information leak in Kerberos password authentication (CVE-2006-5052)