This is a smart card chip. It gets used on different devices, including smart cards, identity documents, TPMs, and Yubikeys.
And yes, this is a well-known vulnerability. In particular, the extended euclidean algorithm ranks pretty high on the list of mathematical algorithms you'd want...