{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-49421","id":"CVE-2026-49421","title":"unlinkat(2) ignores AT_RESOLVE_BENEATH flag","description":"The kernel function that implements unlinkat(2) and funlinkat(2) validated the AT_RESOLVE_BENEATH flag but failed to pass it through to the underlying path lookup.  The flag was silently dropped, so path resolution was not actually restricted.\n\nA process that uses AT_RESOLVE_BENEATH with unlinkat(2) or funlinkat(2) to confine path resolution can in fact resolve paths above the starting directory. ","descriptionLong":"The kernel function that implements unlinkat(2) and funlinkat(2) validated the AT_RESOLVE_BENEATH flag but failed to pass it through to the underlying path lookup.  The flag was silently dropped, so path resolution was not actually restricted.\n\nA process that uses AT_RESOLVE_BENEATH with unlinkat(2) or funlinkat(2) to confine path resolution can in fact resolve paths above the starting directory.  A caller relying on this flag for path containment may delete files outside the intended directory tree.","published":"2026-08-19T05:25:43.003Z","updated":"2026-11-09T20:10:00.200Z","reserved":"2026-05-29T20:24:28.616Z","status":"Analyzed","rejected":false,"assigner":"freebsd","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"CISA-ADP"}],"rating":"high","products":["FreeBSD"],"affectedProducts":[{"vendor":"FreeBSD","product":"FreeBSD","defaultStatus":"unknown","versions":[{"status":"affected","versionType":"release","version":"15.1-RELEASE","lessThan":"p1"},{"status":"affected","versionType":"release","version":"15.0-RELEASE","lessThan":"p11"},{"status":"affected","versionType":"release","version":"14.4-RELEASE","lessThan":"p7"},{"status":"affected","versionType":"release","version":"14.3-RELEASE","lessThan":"p16"}],"platforms":[]}],"packages":[],"cwes":["CWE-273"],"aliases":[],"references":[{"url":"https://security.freebsd.org/advisories/FreeBSD-SA-26:42.unlinkat.asc","tags":["vendor-advisory","Vendor Advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00132,"epssPercentile":0.0287,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-49421","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49421","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-49421","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-49421","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}