{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T11:07:29Z","timestamp":1790075249466,"version":"4.0.1"},"reference-count":75,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T00:00:00Z","timestamp":1780876800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,6,8]]},"abstract":"<jats:p>Memory safety is traditionally characterized in terms of bad things that cannot happen. This approach is currently embraced in the literature on formal methods for memory safety. However, a general semantic principle for memory safety, that implies the negative items, remains elusive.<\/jats:p>\n                  <jats:p>\n                    This paper focuses on the allocator-specific aspects of memory safety, such as null-pointer dereference, use after free, double free, and heap overflow. To that extent, we propose a notion of\n                    <jats:italic toggle=\"yes\">gradual allocator independence<\/jats:italic>\n                    that accurately captures the allocator-dependent aspects of memory safety. Our approach is inspired by the previously suggested connection between memory safety and noninterference, but extends that connection in a fundamentally important direction towards downgrading.\n                  <\/jats:p>\n                  <jats:p>We consider a low-level language with access to an allocator that provides malloc and free primitives in a flat memory model. Pointers are just integers, and as such it is trivial to write memory-unsafe programs. The basic intuition of gradual allocator independence is that of noninterference, namely that allocators must not influence program execution. This intuition is refined in two important ways that account for the allocators running out-of-memory and for programs to have pointer-to-integer casts. The key insight of the definition is to treat these extensions as forms of downgrading and give them satisfactory technical treatment using the state-of-the-art information flow machinery.<\/jats:p>","DOI":"10.1145\/3808260","type":"journal-article","created":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T18:04:09Z","timestamp":1780941849000},"page":"328-355","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["The Downgrading Semantics of Memory Safety"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5688-6432","authenticated-orcid":false,"given":"Ren\u00e9 Rydhof","family":"Hansen","sequence":"first","affiliation":[{"name":"Aalborg University, Computer Science, Aalborg, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-2232-7720","authenticated-orcid":false,"given":"Andreas Stenb\u00e6k","family":"Larsen","sequence":"additional","affiliation":[{"name":"Aarhus University, Computer Science, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9035-4034","authenticated-orcid":false,"given":"Aslan","family":"Askarov","sequence":"additional","affiliation":[{"name":"Aarhus University, Computer Science, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,6,8]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","unstructured":"C. Acay R. Recto J. Gancher A. C. Myers and E. Shi. \u201cViaduct: an extensible optimizing compiler for secure distributed programs\u201d. In: Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation. 2021 pp. 740\u2013755. doi: 10.1145\/3453483.3454074.","DOI":"10.1145\/3453483.3454074"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","DOI":"10.1109\/EuroSP53844.2022.00035"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-96131-6"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","unstructured":"S. Amar D. Chisnall T. Chen N. W. Filardo B. Laurie K. Liu R. M. Norton S. W. Moore Y. Tao R. N. M. Watson and H. Xia. \u201cCHERIoT: Complete Memory Safety for Embedded Devices\u201d. In: Proceedings of the 56th International Symposium on Microarchitecture (MICRO 2023). 2023 pp. 641\u2013653. doi: 10.1145\/3613424.3614266.","DOI":"10.1145\/3613424.3614266"},{"key":"e_1_3_1_6_2","doi-asserted-by":"crossref","unstructured":"A. W. Appel and D. A. Naumann. \u201cVerified sequential malloc\/free\u201d. In: Proceedings of the 2020 ACM SIGPLAN International Symposium on Memory Management. 2020 pp. 48\u201359. doi:10.1145\/3381898.3397211.","DOI":"10.1145\/3381898.3397211"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-15077-7_4"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-88313-5_22"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2015.30"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","unstructured":"A. Askarov and A. C. Myers. \u201cAttacker Control and Impact for Confidentiality and Integrity\u201d. In: Logical Methods in Computer Science 7.3 (2011). doi: 10.2168\/LMCS-7(3:17)2011. url: https:\/\/lmcs.episciences.org\/987.","DOI":"10.2168\/LMCS-7(3:17)2011"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2007.22"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2009.22"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-89722-6_4"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","unstructured":"A. Banerjee D. A. Naumann and S. Rosenberg. \u201cExpressive declassification policies and modular static enforcement\u201d. In: 2008 IEEE Symposium on Security and Privacy (sp 2008). IEEE. 2008 pp. 339\u2013353. doi: 10.1109\/SP.2008.20.","DOI":"10.1109\/SP.2008.20"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","unstructured":"G. Barthe P. R. D\u2019argenio and T. Rezk. \u201cSecure information flow by self-composition\u201d. In: Mathematical Structures in Computer Science 21.6 (2011) pp. 1207\u20131252. doi: 10.1017\/S0960129511000193.","DOI":"10.1017\/S0960129511000193"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","unstructured":"I. Bastys F. Piessens and A. Sabelfeld. \u201cPrudent design principles for information flow control\u201d. In: Proceedings of the 13th Workshop on Programming Languages and Analysis for Security. 2018 pp. 17\u201323. doi: 10.1145\/3264820.3264824.","DOI":"10.1145\/3264820.3264824"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF49147.2020.00015"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3674652"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","unstructured":"E. D. Berger and B. G. Zorn. \u201cDieHard: probabilistic memory safety for unsafe languages\u201d. In: Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2006). 2006 pp. 158\u2013168. doi: 10.1145\/1133981.1134000.","DOI":"10.1145\/1133981.1134000"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-22102-1_5"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","unstructured":"E. Cecchetti. \u201cNonmalleable Progress Leakage\u201d. In: 2025 IEEE 38th Computer Security Foundations Symposium (CSF). 2025 pp. 537\u2013552. doi: 10.1109\/CSF64896.2025.00029.","DOI":"10.1109\/CSF64896.2025.00029"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","unstructured":"E. Cecchetti A. C. Myers and O. Arden. \u201cNonmalleable information flow control\u201d. In: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security. 2017 pp. 1875\u20131891. doi: 10.1145\/3133956.3134054.","DOI":"10.1145\/3133956.3134054"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3579834"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSFW.2005.19"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.3233\/JCS-2009-0393"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","unstructured":"V. D\u2019Silva M. Payer and D. Song. \u201cThe Correctness-Security Gap in Compiler Optimization\u201d. In: 2015 IEEE Security and Privacy Workshops. 2015 pp. 73\u201387. doi: 10.1109\/SPW.2015.33.","DOI":"10.1109\/SPW.2015.33"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3689756"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1109\/EuroSP.2016.22"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","unstructured":"D. Devriese and F. Piessens. \u201cNoninterference through Secure Multi-execution\u201d. In: 2010 IEEE Symposium on Security and Privacy. 2010 pp. 109\u2013124. doi: 10.1109\/SP.2010.15.","DOI":"10.1109\/SP.2010.15"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","unstructured":"A. S. Elliott A. Ruef M. Hicks and D. Tarditi. \u201cChecked C: Making C Safe by Extension\u201d. In: Proceedings of IEEE Cybersecurity Development (SecDev 2018). 2018 pp. 53\u201360. doi: 10.1109\/SecDev.2018.00015 url: https:\/\/www.microsoft.com\/en-us\/research\/uploads\/prod\/2018\/09\/checkedc-secdev2018-preprint.pdf.","DOI":"10.1109\/SecDev.2018.00015"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","unstructured":"A. Erbsen S. Gruetter J. Choi C. Wood and A. Chlipala. \u201cIntegration verification across software and hardware for a simple embedded system\u201d. In: Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation. 2021 pp. 604\u2013619. doi: 10.1145\/3453483.3454065.","DOI":"10.1145\/3453483.3454065"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","unstructured":"A. Ferraiuolo M. Zhao A. C. Myers and G. E. Suh. \u201cHyperFlow: A processor architecture for nonmalleable timing-safe information flow security\u201d. In: Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security. 2018 pp. 1583\u20131600. doi: 10.1145\/3243734.3243743.","DOI":"10.1145\/3243734.3243743"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3623510"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.1982.10014"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","unstructured":"R. R. Hansen A. S. Larsen and A. Askarov. The downgrading semantics of memory safety. 2025. doi: 10.48550\/arXiv.2507.11282. arXiv:2507.11282 [cs.PL]. url: https:\/\/arxiv.org\/abs\/2507.11282.","DOI":"10.48550\/arXiv.2507.11282"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","unstructured":"R. R. Hansen A. Stenbaek Larsen and A. Askarov. Notac interpreter and examples. Mar. 2026. doi: 10.5281\/zenodo.19076610. url: https:\/\/doi.org\/10.5281\/zenodo.19076610 10.5281\/zenodo.19076610.","DOI":"10.5281\/zenodo.19076610"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.3233\/978-1-61499-028-4-319"},{"key":"e_1_3_1_38_2","unstructured":"M. Hicks. What is memory safety? Blog post. Last accessed: February 2026. url: http:\/\/www.plenthusiast.net\/2014\/07\/21\/memory-safety\/."},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78739-6_19"},{"key":"e_1_3_1_40_2","volume-title":"Standard. Working draft","author":"ISO\/IEC","year":"2025","unstructured":"ISO\/IEC. ISO\/IEC 9899:202y N3685: Information technology \u2014 Programming languages \u2014 C. Standard. Working draft. International Organization for Standardization, Geneva, Switzerland, 2025. url: https:\/\/www.open-std.org\/jtc1\/sc22\/wg14\/www\/docs\/n3685.pdf."},{"key":"e_1_3_1_41_2","unstructured":"A. Jangda B. Powers E. D. Berger and A. Guha. \u201cNot so fast: Analyzing the performance of {WebAssembly} vs. native code\u201d. In: 2019 USENIX Annual Technical Conference (USENIX ATC 19). 2019 pp. 107\u2013120."},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796818000151"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","unstructured":"J. Kang C. Hur W. Mansky D. Garbuzov S. Zdancewic and V. Vafeiadis. \u201cA formal C memory model supporting integer-pointer casts\u201d. In: Proceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2015). 2015 pp. 326\u2013335. doi: 10.1145\/2737924.2738005.","DOI":"10.1145\/2737924.2738005"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","unstructured":"S. Kell. \u201cSome were meant for C: the endurance of an unmanageable language\u201d. In: Proceedings of the 2017 ACM SIGPLAN International Symposium on New Ideas New Paradigms and Reflections on Programming and Software (Onward! 2017). 2017 pp. 229\u2013245. doi: 10.1145\/3133850.3133867.","DOI":"10.1145\/3133850.3133867"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.5555\/576122"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","DOI":"10.1007\/S10817-016-9369-1"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","unstructured":"L. Lamport and F. B. Schneider. \u201cVerifying Hyperproperties With TLA\u201d. In: Proceedings of the 34th IEEE Computer Security Foundations Symposium (CSF 2021). 2021 pp. 1\u201316. doi: 10.1109\/CSF51468.2021.00012.","DOI":"10.1109\/CSF51468.2021.00012"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1145\/3527325"},{"key":"e_1_3_1_49_2","unstructured":"D. Lea. Source code for dlmalloc() version 2.8.6. 2012. url: https:\/\/gee.cs.oswego.edu\/pub\/misc\/malloc.c."},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","DOI":"10.1145\/3689722"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781107256552.037"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","unstructured":"P. Li and S. Zdancewic. \u201cDowngrading policies and relaxed noninterference\u201d. In: Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages. 2005 pp. 158\u2013170. doi: 10.1145\/1040305.1040319.","DOI":"10.1145\/1040305.1040319"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/3290380"},{"key":"e_1_3_1_54_2","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908081"},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1145\/3554344"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/1866307.1866371"},{"key":"e_1_3_1_57_2","doi-asserted-by":"publisher","DOI":"10.1145\/3371078"},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSFW.2006.16"},{"key":"e_1_3_1_59_2","unstructured":"L.-N. Pouchet and T. Yuki. PolyBench\/C 4.2.1. http:\/\/polybench.sourceforge.net. Accessed: March 2026. 2016."},{"key":"e_1_3_1_60_2","doi-asserted-by":"publisher","DOI":"10.1145\/3689773"},{"key":"e_1_3_1_61_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-17138-4_4"},{"key":"e_1_3_1_62_2","doi-asserted-by":"publisher","DOI":"10.1109\/JSAC.2002.806121"},{"key":"e_1_3_1_63_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSFW.2005.15"},{"key":"e_1_3_1_64_2","doi-asserted-by":"publisher","DOI":"10.1109\/eurosp.2016.14"},{"key":"e_1_3_1_65_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4302-0753-5_26"},{"key":"e_1_3_1_66_2","doi-asserted-by":"publisher","DOI":"10.1145\/3133913"},{"key":"e_1_3_1_67_2","unstructured":"L. Torvalds. Re: [RFC] [PATCH] cpuset operations causes Badness at mm\/slab.c:777 warning. Linux Kernel Mailing List (LKML). Message ID and full thread available via LKML archive. June 2007. url: https:\/\/lkml.org\/lkml\/2007\/6\/1\/440."},{"key":"e_1_3_1_68_2","doi-asserted-by":"publisher","unstructured":"H. Tuch G. Klein and M. Norrish. \u201cTypes bytes and separation logic\u201d. In: Proceedings of the 34th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL 2007). 2007 pp. 97\u2013108. doi: 10.1145\/1190216.1190234.","DOI":"10.1145\/1190216.1190234"},{"key":"e_1_3_1_69_2","doi-asserted-by":"publisher","DOI":"10.48456\/tr-947"},{"key":"e_1_3_1_70_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2015.9"},{"key":"e_1_3_1_71_2","first-page":"1025","volume-title":"26th USENIX Security Symposium (USENIX Security 17)","author":"Yang Z.","year":"2017","unstructured":"Z. Yang, B. Johannesmeyer, A. T. Olesen, S. Lerner, and K. Levchenko. \u201cDead Store Elimination (Still) Considered Harmful\u201d. In: 26th USENIX Security Symposium (USENIX Security 17). Vancouver, BC: USENIX Association, Aug. 2017, pp. 1025\u20131040. isbn: 978-1-931971-40-9."},{"key":"e_1_3_1_72_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2019.00026"},{"key":"e_1_3_1_73_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSFW.2001.930133"},{"key":"e_1_3_1_74_2","doi-asserted-by":"publisher","unstructured":"D. Zhang A. Askarov and A. C. Myers. \u201cLanguage-based control and mitigation of timing channels\u201d. In: Proceedings of the 33rd ACM SIGPLAN conference on Programming Language Design and Implementation. 2012 pp. 99\u2013110. doi: 10.1145\/2254064.2254078.","DOI":"10.1145\/2254064.2254078"},{"key":"e_1_3_1_75_2","doi-asserted-by":"publisher","DOI":"10.1145\/2694344.2694372"},{"key":"e_1_3_1_76_2","doi-asserted-by":"publisher","DOI":"10.1145\/3586045"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808260","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T10:43:38Z","timestamp":1790073818000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3808260"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,8]]},"references-count":75,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2026,6,8]]}},"alternative-id":["10.1145\/3808260"],"URL":"https:\/\/doi.org\/10.1145\/3808260","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,8]]},"assertion":[{"value":"2025-11-13","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-03","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-06-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}