CVE-2007-5398
Stack-based buffer overflow in the reply_netbios_packet function in nmbd/nmbd_packets.c in nmbd in Samba 3.0.0 through 3.0.26a, when…
Check your servers for CVE-2007-5398
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2007-5398 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Stack-based buffer overflow in the reply_netbios_packet function in nmbd/nmbd_packets.c in nmbd in Samba 3.0.0 through 3.0.26a, when operating as a WINS server, allows remote attackers to execute arbitrary code via crafted WINS Name Registration requests followed by a WINS Name Query request.
Exploitation
EPSS 11.3%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.7% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2007-5398 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2007-5398RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2007-5398Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2007-5398
trivy image --scanners vuln IMAGE | grep CVE-2007-5398
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- 27691 secunia.com · third party advisory
- RHSA-2007:1016 redhat.com · vendor advisory
- USN-544-1 usn.ubuntu.com · vendor advisory
- TA07-352A us-cert.gov · third party advisory
- 30835 secunia.com · third party advisory
- 29341 secunia.com · third party advisory
- SSA:2007-320-01 slackware.com · vendor advisory
- HPSBUX02316 marc.info · vendor advisory
- 28136 secunia.com · third party advisory
- 27679 secunia.com · third party advisory
- 27682 secunia.com · third party advisory
- 27701 secunia.com · third party advisory
23 more
- RHSA-2007:1013 redhat.com · vendor advisory
- 27720 secunia.com · third party advisory
- 27742 secunia.com · third party advisory
- HPSBUX02341 www11.itrc.hp.com · vendor advisory
- 30484 secunia.com · third party advisory
- DSA-1409 debian.org · vendor advisory
- 27450 secunia.com · third party advisory
- 27731 secunia.com · third party advisory
- APPLE-SA-2007-12-17 lists.apple.com · vendor advisory
- MDKSA-2007:224 mandriva.com · vendor advisory
- 27787 secunia.com · third party advisory
- http://docs.info.apple.com/article.html?artnum=307179 docs.info.apple.com
- 28368 secunia.com · third party advisory
- https://issues.rpath.com/browse/RPL-1894 issues.rpath.com
- GLSA-200711-29 gentoo.org · vendor advisory
- FEDORA-2007-3402 redhat.com · vendor advisory
- 27927 secunia.com · third party advisory
- 3372 securityreason.com · third party advisory
- 237764 sunsolve.sun.com · vendor advisory
- http://us1.samba.org/samba/security/CVE-2007-5398.html us1.samba.org
- http://www.vmware.com/security/advisories/VMSA-2008-0001.html vmware.com
- RHSA-2007:1017 redhat.com · vendor advisory
- SUSE-SA:2007:065 novell.com · vendor advisory
Other references
- http://secunia.com/secunia_research/2007-90/advisory/ secunia.com
- oval:org.mitre.oval:def:10230 oval.cisecurity.org · vdb entry, signature
- ADV-2007-4238 vupen.com · vdb entry
- oval:org.mitre.oval:def:5811 oval.cisecurity.org · vdb entry, signature
- ADV-2007-3869 vupen.com · vdb entry
- 1018953 securitytracker.com · vdb entry
- ADV-2008-1908 vupen.com · vdb entry
- 20080108 VMSA-2008-0001 Moderate OpenPegasus PAM Authentication Buffer Overflow and updated service console packages securityfocus.com · mailing list
- [Security-announce] 20080107 VMSA-2008-0001 Moderate OpenPegasus PAM Authentication Buffer Overflow and updated… lists.vmware.com · mailing list
- 26455 securityfocus.com · vdb entry
- 20071115 Secunia Research: Samba "reply_netbios_packet()" Buffer OverflowVulnerability securityfocus.com · mailing list
- ADV-2008-1712 vupen.com · vdb entry
4 more
- ADV-2008-0859 vupen.com · vdb entry
- ADV-2008-0064 vupen.com · vdb entry
- samba-replynetbiospacket-bo(38502) exchange.xforce.ibmcloud.com · vdb entry
- 20080123 UPDATED VMSA-2008-0001.1 Moderate OpenPegasus PAM Authentication Buffer Overflow and updated service… securityfocus.com · mailing list
Source: the record CVE-2007-5398 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse