{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-57259 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-57259 is a high-severity memory corruption vulnerability in denx U-Boot, published on 18 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-57259 and fix it if it is affected.\n\nWhat it is: CVE-2024-57259 is a high-severity memory corruption vulnerability in denx U-Boot, published on 18 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-57259 in the wild and no public exploit code.\n\nAffected product: denx U-Boot. 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-2024-57259/ (Markdown: https://insights.sbomify.com/CVE-2024-57259/index.md)","id":"CVE-2024-57259","markdown":"https://insights.sbomify.com/CVE-2024-57259/index.md","name":"CVE-2024-57259","record":{"aliases":["DEBIAN-CVE-2024-57259","GHSA-c2cp-78ww-6jm8","UBUNTU-CVE-2024-57259"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"U-Boot bootloader","requires_auth":"none","summary":"An off-by-one error in U-Boot's squashfs directory listing allows heap memory corruption, potentially leading to code execution or denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"u-boot","vendor":"denx"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-193","name":"Off-by-one Error"}],"description":"sqfs_search_dir in Das U-Boot before 2025.01-rc1 exhibits an off-by-one error and resultant heap memory corruption for squashfs directory listing because the path separator is not considered in a size calculation.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory corruption in U-Boot","id":"CVE-2024-57259","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Integer overflow in barebox","id":"CVE-2024-57261"},"packages":[],"prev":{"headline":"Integer overflow in U-Boot","id":"CVE-2024-57258"},"products":["U-Boot"],"published":"2025-02-18","related":[{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2022-34835","kev_date_added":null,"published":"2022-06-29"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2022-30767","kev_date_added":null,"published":"2022-05-16"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2020-8432","kev_date_added":null,"published":"2020-01-29"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2019-14192","kev_date_added":null,"published":"2019-07-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2019-14193","kev_date_added":null,"published":"2019-07-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2019-14194","kev_date_added":null,"published":"2019-07-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2019-14195","kev_date_added":null,"published":"2019-07-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["denx"]},"summary":"An off-by-one error in U-Boot's squashfs directory listing allows heap memory corruption, potentially leading to code execution or denial of service.","url":"https://insights.sbomify.com/CVE-2024-57259/"}