{"id":"CVE-2024-53984","aliases":["DEBIAN-CVE-2024-53984","EUVD-2024-52228","GHSA-xwqq-qxmw-hj5r","UBUNTU-CVE-2024-53984","openSUSE-SU-2024:0400-1"],"status":"published","title":"Nanopb does not release memory on error return when using PB_DECODE_DELIMITED","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","severity":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00409,"percentile":0.35658,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-401","CWE-755"],"published":"2024-12-02T15:54:47Z","modified":"2026-11-02T12:02:57Z","fixes":[{"ecosystem":"Debian:13","package":"nanopb","fixed_in":["0.4.9.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"nanopb","fixed_in":["0.4.9.1-1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP6","package":"nanopb","fixed_in":["0.4.6-bp156.4.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.6","package":"nanopb","fixed_in":["0.4.6-bp156.4.3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.7-2","0.4.7-3","0.4.8-1","0.4.8-2","0.4.9-1","0.4.9.1-1","0.4.9.1-2"]},{"source":"osv","ecosystem":"Debian:13","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.9.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.9.1-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.1-1","0.4.1-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4-2","0.4.5-1","0.4.5-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.7-2","0.4.7-3","0.4.8-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.9.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.9.1-1build1","0.4.9.1-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.9.1-1","0.4.9.1-1build1"]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP6","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-bp156.4.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.6","package":"nanopb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.6-bp156.4.3.1"}]}]}],"products":[{"vendor":"nanopb","product":"nanopb"}],"references":[{"url":"https://github.com/nanopb/nanopb/security/advisories/GHSA-xwqq-qxmw-hj5r","tags":["x_refsource_CONFIRM","advisory","report"]},{"url":"https://github.com/nanopb/nanopb/commit/2b86c255aa52250438d5aba124d0e86db495b378","tags":["x_refsource_MISC","fix","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53984.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53984","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-53984","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-53984","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-53984","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/AG77Q4WFLPBVX3LSKIMQWP7DA3QHCSEV/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1234088","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2024-53984","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2024-53984","title":"Nanopb does not release memory on error return when using PB_DECODE_DELIMITED","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","status":"published","published":"2024-12-02T15:54:47.478Z","modified":"2024-12-02T21:40:02.909Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-401","CWE-755"],"updated_at":"2026-11-02T14:34:17.523201Z"}],"euvd":[{"id":"EUVD-2024-52228","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","status":"published","published":"2024-12-02T15:54:47Z","modified":"2024-12-02T21:40:02Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-03T00:04:42.699051Z"}],"nvd":[{"id":"CVE-2024-53984","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","status":"published","published":"2024-12-02T16:15:14.603Z","modified":"2026-06-17T08:09:36.963Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-401","CWE-755"],"updated_at":"2026-11-02T14:10:38.973941Z"}],"osv":[{"id":"CVE-2024-53984","title":"Nanopb does not release memory on error return when using PB_DECODE_DELIMITED","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","status":"published","published":"2024-12-02T15:54:47.478Z","modified":"2026-10-28T10:51:26.114344112Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-401","CWE-755"],"updated_at":"2026-11-02T15:44:44.451316Z"},{"id":"DEBIAN-CVE-2024-53984","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","status":"published","published":"2024-12-02T16:15:14.603Z","modified":"2026-11-02T12:02:57.043848789Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:44.429177Z"},{"id":"UBUNTU-CVE-2024-53984","description":"Nanopb is a small code-size Protocol Buffers implementation.  When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.","status":"published","published":"2024-12-02T16:15:00Z","modified":"2026-10-17T12:57:24.946259715Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T16:55:15.331356Z"},{"id":"openSUSE-SU-2024:0400-1","title":"Security update for nanopb","description":"This update for nanopb fixes the following issues:\n\n- CVE-2024-53984: Fix memory not released on error return (boo#1234088) \n","status":"published","published":"2024-12-09T11:02:14Z","modified":"2026-02-04T03:38:23.604768Z","updated_at":"2026-11-02T16:58:33.135986Z"}]}}
