Libc 2.34

Sometimes in CTF’s I observe that certain binaries are compiled with a later version of libc such as 2.34 or 2.35 and so every time I run the binary, I encounter an error message saying; ./babyheap: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by ./babyheap)`
Can someone help me with patching up the binary with the libc 2.35. I tried to download libc2.35 from here