{"id":"DEBIAN-CVE-2021-47496","details":"In the Linux kernel, the following vulnerability has been resolved:  net/tls: Fix flipped sign in tls_err_abort() calls  sk-\u003esk_err appears to expect a positive value, a convention that ktls doesn't always follow and that leads to memory corruption in other code. For instance,      [kworker]     tls_encrypt_done(..., err=\u003cnegative error from crypto request\u003e)       tls_err_abort(.., err)         sk-\u003esk_err = err;      [task]     splice_from_pipe_feed       ...         tls_sw_do_sendpage           if (sk-\u003esk_err) {             ret = -sk-\u003esk_err;  // ret is positive      splice_from_pipe_feed (continued)       ret = actor(...)  // ret is still positive and interpreted as bytes                         // written, resulting in underflow of buf-\u003elen and                         // sd-\u003elen, leading to huge buf-\u003eoffset and bogus                         // addresses computed in later calls to actor()  Fix all tls_err_abort() callers to pass a negative error code consistently and centralize the error-prone sign flip there, throwing in a warning to catch future misuse and uninlining the function so it really does only warn once.","modified":"2026-09-15T09:02:36.042735158Z","published":"2024-05-22T09:15:11.447Z","upstream":["CVE-2021-47496"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-47496"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47496.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47496.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47496.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}