{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-52767","id":"CVE-2023-52767","title":"tls: fix NULL deref on tls_sw_splice_eof() with empty record","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: fix NULL deref on tls_sw_splice_eof() with empty record\n\nsyzkaller discovered that if tls_sw_splice_eof() is executed as part of\nsendfile() when the plaintext/ciphertext sk_msg are empty, the send path\ngets confused because the empty ciphertext buffer does not have enough\nspace for the encryption overhead. This causes tls_pu","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: fix NULL deref on tls_sw_splice_eof() with empty record\n\nsyzkaller discovered that if tls_sw_splice_eof() is executed as part of\nsendfile() when the plaintext/ciphertext sk_msg are empty, the send path\ngets confused because the empty ciphertext buffer does not have enough\nspace for the encryption overhead. This causes tls_push_record() to go on\nthe `split = true` path (which is only supposed to be used when interacting\nwith an attached BPF program), and then get further confused and hit the\ntls_merge_open_record() path, which then assumes that there must be at\nleast one populated buffer element, leading to a NULL deref.\n\nIt is possible to have empty plaintext/ciphertext buffers if we previously\nbailed from tls_sw_sendmsg_locked() via the tls_trim_both_msgs() path.\ntls_sw_push_pending_record() already handles this case correctly; let's do\nthe same check in tls_sw_splice_eof().","published":"2024-05-21T15:30:50.993Z","updated":"2026-10-28T02:31:00.735411172Z","reserved":"2024-05-21T15:19:24.238Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5ad627faed136089e27bcd15e0c33760e575c8c3","lessThan":"944900fe2736c07288efe2d9394db4d3ca23f2c9","status":"affected","versionType":"git"},{"version":"df720d288dbb1793e82b6ccbfc670ec871e9def4","lessThan":"2214e2bb5489145aba944874d0ee1652a0a63dc8","status":"affected","versionType":"git"},{"version":"df720d288dbb1793e82b6ccbfc670ec871e9def4","lessThan":"53f2cb491b500897a619ff6abd72f565933760f0","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","lessThan":"6.5","status":"unaffected","versionType":"semver"},{"version":"6.6.4","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/944900fe2736c07288efe2d9394db4d3ca23f2c9","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/2214e2bb5489145aba944874d0ee1652a0a63dc8","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/53f2cb491b500897a619ff6abd72f565933760f0","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52767.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52767","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00172,"epssPercentile":0.06698,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-52767","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52767","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-52767","ok":true,"note":"0 packages"},{"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-2023-52767","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}