{"answers":{"affected":"It affects 6 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2015-0240 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2015-0240 is a critical use after free vulnerability in Canonical Ubuntu Linux, published on 24 Feb 2015. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2015-0240 and fix it if it is affected.\n\nWhat it is: CVE-2015-0240 is a critical use after free vulnerability in Canonical Ubuntu Linux, published on 24 Feb 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2015-0240 exists.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2015-0240/ (Markdown: https://insights.sbomify.com/CVE-2015-0240/index.md)","id":"CVE-2015-0240","markdown":"https://insights.sbomify.com/CVE-2015-0240/index.md","name":"CVE-2015-0240","record":{"aliases":["DEBIAN-CVE-2015-0240","DLA-156-1","DSA-3171-1","ECHO-2110-1c89-9bef","GHSA-wjcr-wjqx-g6rq","MGASA-2015-0084","RHSA-2015:0249","RHSA-2015:0250","RHSA-2015:0251","RHSA-2015:0252","RHSA-2015:0253","RHSA-2015:0254","RHSA-2015:0255","RHSA-2015:0256","RHSA-2015:0257","SUSE-SU-2015:0353-1","SUSE-SU-2015:0371-1","UBUNTU-CVE-2015-0240","USN-2508-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Samba Netlogon server","requires_auth":"none","summary":"Remote attackers can execute arbitrary code on Samba servers via crafted Netlogon packets exploiting an uninitialized stack pointer free operation.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"suse_linux_enterprise_desktop","vendor":"novell"},{"product":"suse_linux_enterprise_server","vendor":"novell"},{"product":"suse_linux_enterprise_software_development_kit","vendor":"novell"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"samba","vendor":"samba"}],"cvss":{"score":10,"severity":"critical","source":"nvd","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-17","name":null}],"description":"The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1.17, and 4.2.x before 4.2.0rc5 performs a free operation on an uninitialized stack pointer, which allows remote attackers to execute arbitrary code via crafted Netlogon packets that use the ServerPasswordSet RPC API, as demonstrated by packets reaching the _netr_ServerPasswordSet function in rpc_server/netlogon/srv_netlog_nt.c.","ecosystems":["Red Hat:enterprise_linux:5::client","Red Hat:enterprise_linux:5::client_workstation","Red Hat:enterprise_linux:5::server","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:rhel_eus:5.9","Red Hat:rhel_eus:6.4::computenode","Red Hat:rhel_eus:6.4::server","Red Hat:rhel_eus:6.5::computenode","Red Hat:rhel_eus:6.5::server","Red Hat:rhel_mission_critical:5.6","Red Hat:rhel_mission_critical:6.2::server","Red Hat:storage:2.1:server:el6","Red Hat:storage:3:server:el6","SUSE:Linux Enterprise Desktop 12","SUSE:Linux Enterprise Server 12","SUSE:Linux Enterprise Server for SAP Applications 12","SUSE:Linux Enterprise Software Development Kit 12"],"exploits":{"exploitdb":1,"first_seen":"2015-04-13","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2015-04-13","kind":"exploitdb","ref":"36741","stars":null,"title":"Samba \u003c 3.6.2 (x86) - Denial of Service (PoC)"},{"date":null,"kind":"metasploit","ref":"auxiliary/scanner/smb/smb_uninit_cred","stars":null,"title":"Samba _netr_ServerPasswordSet Uninitialized Credential State"}],"tier":"weaponised"},"has_fix":true,"headline":"Use after free in n/a","id":"CVE-2015-0240","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","novell:suse_linux_enterprise_desktop","novell:suse_linux_enterprise_server","novell:suse_linux_enterprise_software_development_kit","redhat:enterprise_linux","samba:samba"],"type":"use_after_free","year":"2015"},"n_packages":395,"n_references":37,"next":{"headline":"Memory corruption in PostgreSQL","id":"CVE-2015-0241"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x","purl":"pkg:rpm/redhat/samba3x","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-client","purl":"pkg:rpm/redhat/samba3x-client","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-common","purl":"pkg:rpm/redhat/samba3x-common","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-debuginfo","purl":"pkg:rpm/redhat/samba3x-debuginfo","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-doc","purl":"pkg:rpm/redhat/samba3x-doc","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-domainjoin-gui","purl":"pkg:rpm/redhat/samba3x-domainjoin-gui","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-swat","purl":"pkg:rpm/redhat/samba3x-swat","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind","purl":"pkg:rpm/redhat/samba3x-winbind","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x","purl":"pkg:rpm/redhat/samba3x","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-debuginfo","purl":"pkg:rpm/redhat/samba3x-debuginfo","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind-devel","purl":"pkg:rpm/redhat/samba3x-winbind-devel","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x","purl":"pkg:rpm/redhat/samba3x","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-client","purl":"pkg:rpm/redhat/samba3x-client","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-common","purl":"pkg:rpm/redhat/samba3x-common","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-debuginfo","purl":"pkg:rpm/redhat/samba3x-debuginfo","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-doc","purl":"pkg:rpm/redhat/samba3x-doc","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-domainjoin-gui","purl":"pkg:rpm/redhat/samba3x-domainjoin-gui","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-swat","purl":"pkg:rpm/redhat/samba3x-swat","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind","purl":"pkg:rpm/redhat/samba3x-winbind","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.6.23-9.el5_11"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind-devel","purl":"pkg:rpm/redhat/samba3x-winbind-devel","source":"RHSA-2015:0249"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-doc","purl":"pkg:rpm/redhat/samba-doc","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-domainjoin-gui","purl":"pkg:rpm/redhat/samba-domainjoin-gui","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-glusterfs","purl":"pkg:rpm/redhat/samba-glusterfs","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-winbind","purl":"pkg:rpm/redhat/samba-winbind","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-clients","purl":"pkg:rpm/redhat/samba-winbind-clients","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-devel","purl":"pkg:rpm/redhat/samba-winbind-devel","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-14.el6_6"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-krb5-locator","purl":"pkg:rpm/redhat/samba-winbind-krb5-locator","source":"RHSA-2015:0251"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.0.0-66.el6_6.rc4"],"introduced":["0"],"last_affected":[],"package":"samba4","purl":"pkg:rpm/redhat/samba4","source":"RHSA-2015:0250"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.0.0-66.el6_6.rc4"],"introduced":["0"],"last_affected":[],"package":"samba4-client","purl":"pkg:rpm/redhat/samba4-client","source":"RHSA-2015:0250"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.0.0-66.el6_6.rc4"],"introduced":["0"],"last_affected":[],"package":"samba4-common","purl":"pkg:rpm/redhat/samba4-common","source":"RHSA-2015:0250"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.0.0-66.el6_6.rc4"],"introduced":["0"],"last_affected":[],"package":"samba4-dc","purl":"pkg:rpm/redhat/samba4-dc","source":"RHSA-2015:0250"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.0.0-66.el6_6.rc4"],"introduced":["0"],"last_affected":[],"package":"samba4-dc-libs","purl":"pkg:rpm/redhat/samba4-dc-libs","source":"RHSA-2015:0250"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.0.0-66.el6_6.rc4"],"introduced":["0"],"last_affected":[],"package":"samba4-debuginfo","purl":"pkg:rpm/redhat/samba4-debuginfo","source":"RHSA-2015:0250"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2015-0239"},"products":["n/a"],"published":"2015-02-24","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-05-09","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code on Samba servers via crafted Netlogon packets exploiting an uninitialized stack pointer free operation.","url":"https://insights.sbomify.com/CVE-2015-0240/"}